Diff to HTML by rtfpessoa

Files changed (60) hide show
  1. missions/99_EMP_Austrian_Missions.txt +2 -2
  2. missions/99_Hansa_Missions.txt +5 -5
  3. missions/AFR_Adal_Missions.txt +2 -2
  4. missions/AFR_Ethiopian_Missions.txt +2 -2
  5. missions/AFR_Jolof_Missions.txt +1 -1
  6. missions/AFR_Mali_Missions .txt +1 -1
  7. missions/AFR_Songhai_Missions.txt +3 -6
  8. missions/Aceh_Missions.txt +1 -0
  9. missions/Aq_Qoyunlu_Missions.txt +9 -1
  10. missions/Arabian_Missions.txt +6 -0
  11. missions/Byzantine_Missions.txt +4 -0
  12. missions/DH_Mewar_Missions.txt +1 -1
  13. missions/DH_Mughal_missions.txt +88 -22
  14. missions/DH_Timurid_Missions.txt +1 -1
  15. missions/DOM_Britain_Missions.txt +16 -5
  16. missions/DOM_Chinese_Missions.txt +132 -98
  17. missions/DOM_French_Missions.txt +29 -16
  18. missions/DOM_Japanese_Missions.txt +98 -68
  19. missions/DOM_Ottoman_Missions.txt +26 -20
  20. missions/DOM_Russia_Missions.txt +2 -8
  21. missions/DOM_Spain_Missions.txt +31 -22
  22. missions/EMP_Austrian_Missions.txt +3 -3
  23. missions/EMP_Burgundian_Missions.txt +1 -1
  24. missions/EMP_French_Missions.txt +1 -1
  25. missions/EMP_Prussian_Missions.txt +32 -9
  26. missions/EMP_Venetian_Missions.txt +1 -2
  27. missions/English_Missions.txt +1 -1
  28. missions/GC_Portuguese_Missions.txt +9 -3
  29. missions/Japanese_Missions.txt +5 -2
  30. missions/KoK_Aq_Qoyunlu_Missions.txt +2185 -0
  31. missions/KoK_Arabia_Missions.txt +2264 -0
  32. missions/KoK_Ardabil_Missions.txt +457 -0
  33. missions/KoK_Armenian_Missions.txt +1736 -0
  34. missions/KoK_Byzantine_Missions.txt +4042 -0
  35. missions/KoK_Georgian_Missions.txt +2652 -0
  36. missions/KoK_Mamluks_Missions.txt +2180 -0
  37. missions/KoK_Persia_Missions.txt +3832 -0
  38. missions/KoK_Qara_Qoyunlu_Missions.txt +2269 -0
  39. missions/KoK_Yemen_Missions.txt +1513 -0
  40. missions/Korean_Missions.txt +52 -32
  41. missions/MND_Majapahit_Missions.txt +1 -1
  42. missions/MND_Pegu_Missions.txt +2 -2
  43. missions/Malacca_Missions.txt +6 -3
  44. missions/Mamluk_Missions.txt +8 -0
  45. missions/Mongol_Missions.txt +4 -0
  46. missions/PP_Purple_Phoenix.txt +5 -0
  47. missions/Palatinate_Missions.txt +2 -2
  48. missions/Persian_Missions.txt +3 -0
  49. missions/RB_English_Missions.txt +1 -1
  50. missions/SCA_Danish_Missions.txt +35 -28
  51. missions/SCA_Finnish_Missions.txt +12 -12
  52. missions/SCA_Gotlandish_Missions.txt +1 -1
  53. missions/SCA_Lithuania_Missions.txt +11 -11
  54. missions/SCA_Livonian_Missions.txt +73 -12
  55. missions/SCA_Norwegian_Missions.txt +2 -2
  56. missions/SCA_Polish_Missions.txt +518 -232
  57. missions/SCA_Swedish_Missions.txt +56 -30
  58. missions/SCA_Teutonic_Missions.txt +121 -44
  59. missions/Westphalian_Missions.txt +4 -4
  60. missions/croatian_missions.txt +2 -2
missions/99_EMP_Austrian_Missions.txt CHANGED
@@ -388,7 +388,7 @@ emp_hab_netherlands_branch = {
388
388
  }
389
389
  NOT = { owned_by = root }
390
390
  NOT = { is_core = root }
391
- NOT = { is_claim = root }
391
+ NOT = { is_permanent_claim = root }
392
392
  any_neighbor_province = {
393
393
  owned_by = root
394
394
  }
@@ -431,7 +431,7 @@ emp_hab_netherlands_branch = {
431
431
  limit = {
432
432
  is_city = yes
433
433
  NOT = { is_core = root }
434
- NOT = { is_claim = root }
434
+ NOT = { is_permanent_claim = root }
435
435
  NOT = {
436
436
  owner = {
437
437
  is_subject_of = root
missions/99_Hansa_Missions.txt CHANGED
@@ -1,4 +1,4 @@
1
- lubeck_missions_1 = { #Made by Big Boss
1
+ lubeck_missions_1 = {
2
2
  slot = 1
3
3
  generic = no
4
4
  ai = yes
@@ -433,7 +433,7 @@ lubeck_missions_1 = { #Made by Big Boss
433
433
  }
434
434
  }
435
435
 
436
- lubeck_missions_2 = { #Made by Big Boss
436
+ lubeck_missions_2 = {
437
437
  slot = 2
438
438
  generic = no
439
439
  ai = yes
@@ -885,7 +885,7 @@ lubeck_missions_2 = { #Made by Big Boss
885
885
  }
886
886
  }
887
887
 
888
- lubeck_missions_3 = { #Made by Big Boss
888
+ lubeck_missions_3 = {
889
889
  slot = 3
890
890
  generic = no
891
891
  ai = yes
@@ -1342,7 +1342,7 @@ lubeck_missions_3 = { #Made by Big Boss
1342
1342
  }
1343
1343
 
1344
1344
 
1345
- lubeck_missions_4 = { #Made by Big Boss
1345
+ lubeck_missions_4 = {
1346
1346
  slot = 4
1347
1347
  generic = no
1348
1348
  ai = yes
@@ -1835,7 +1835,7 @@ lubeck_missions_4 = { #Made by Big Boss
1835
1835
  }
1836
1836
  }
1837
1837
 
1838
- lubeck_missions_5 = { #Made by Big Boss
1838
+ lubeck_missions_5 = {
1839
1839
  slot = 5
1840
1840
  generic = no
1841
1841
  ai = yes
missions/AFR_Adal_Missions.txt CHANGED
@@ -716,8 +716,8 @@ adal_unification_missions_slot = {
716
716
  }
717
717
  }
718
718
  effect = {
719
- add_accepted_culture_or_dip_power = { culture = yemeni_culture }
720
- add_accepted_culture_or_dip_power = { culture = hejazi_culture }
719
+ add_accepted_culture_or_dip_power = { culture = yemeni_culture dip_reward = yes new_line = yes }
720
+ add_accepted_culture_or_dip_power = { culture = hejazi_culture dip_reward = yes }
721
721
  385 = {
722
722
  set_great_project_tier_2 = {
723
723
  type = kaaba
missions/AFR_Ethiopian_Missions.txt CHANGED
@@ -640,7 +640,7 @@ ethiopia_religion_slot = {
640
640
  }
641
641
  position = 5
642
642
  effect = {
643
- add_accepted_culture_or_dip_power = { culture = al_misr_arabic }
643
+ add_accepted_culture_or_dip_power = { culture = al_misr_arabic dip_reward = yes }
644
644
  add_country_modifier = {
645
645
  name = eth_legacy_of_alexandria
646
646
  duration = 9125
@@ -864,7 +864,7 @@ ethiopia_trade_slot = {
864
864
  create_colony_mission_reward = {
865
865
  province = 1217
866
866
  }
867
- add_accepted_culture_or_dip_power = { culture = nubian }
867
+ add_accepted_culture_or_dip_power = { culture = nubian dip_reward = yes }
868
868
  add_permanent_claim = 1232
869
869
  }
870
870
  ai_weight = {
missions/AFR_Jolof_Missions.txt CHANGED
@@ -259,7 +259,7 @@ jol_missions_conquest_slot = {
259
259
  }
260
260
  }
261
261
  effect = {
262
- add_accepted_culture_or_dip_power = { culture = fulani }
262
+ add_accepted_culture_or_dip_power = { culture = fulani dip_reward = yes }
263
263
  add_yearly_manpower = 1
264
264
  }
265
265
  ai_weight = {
missions/AFR_Mali_Missions .txt CHANGED
@@ -993,7 +993,7 @@ mali_empire_slot = {
993
993
  }
994
994
  has_country_shield = yes
995
995
 
996
- #Conquer Djenné
996
+ #Conquer Djenn�
997
997
  mal_retake_the_mosque = {
998
998
  icon = mission_mosque
999
999
  required_missions = { mal_fighting_musa }
missions/AFR_Songhai_Missions.txt CHANGED
@@ -183,10 +183,7 @@ songhai_military_slot = {
183
183
  }
184
184
  }
185
185
  effect = {
186
- custom_tooltip = no_more_comet_sighted_event_tt
187
- hidden_effect = {
188
- set_country_flag = no_more_comet_sighted_event
189
- }
186
+ remove_comet_sighted_events = yes
190
187
  add_country_modifier = {
191
188
  name = son_modern_government
192
189
  duration = -1
@@ -549,14 +546,14 @@ songhai_maghreb_slot = {
549
546
  set_country_flag = can_colonize_djado_and_tajarhi
550
547
  }
551
548
  add_stability = 1
552
- add_accepted_culture_or_dip_power = { culture = tuareg }
549
+ add_accepted_culture_or_dip_power = { culture = tuareg dip_reward = yes }
553
550
  }
554
551
  ai_weight = {
555
552
  factor = 200 #Alt-history
556
553
  }
557
554
  }
558
555
 
559
- #Conquer Djenné
556
+ #Conquer Djenn�
560
557
  son_take_djenne = {
561
558
  icon = mission_mosque
562
559
  required_missions = {
missions/Aceh_Missions.txt CHANGED
@@ -59,6 +59,7 @@ atj_1 = {
59
59
  }
60
60
  }
61
61
  custom_tooltip = atj_holy_war_cb_sumatra_tt
62
+ set_country_flag = 35_trade_power_for_propogate_religion
62
63
  }
63
64
  ai_weight = {
64
65
  factor = 500
missions/Aq_Qoyunlu_Missions.txt CHANGED
@@ -2,9 +2,13 @@ akk_missions = {
2
2
  slot = 1
3
3
  generic = no
4
4
  ai = yes
5
+ potential_on_load = {
6
+ NOT = { has_dlc = "Domination" }
7
+ }
5
8
  potential = {
6
9
  NOT = { map_setup = map_setup_random }
7
10
  tag = AKK
11
+ NOT = { has_dlc = "Domination" }
8
12
  }
9
13
  has_country_shield = yes
10
14
 
@@ -270,9 +274,13 @@ akk_missions_2 = {
270
274
  slot = 2
271
275
  generic = no
272
276
  ai = yes
273
- potential = {
277
+ potential_on_load = {
278
+ NOT = { has_dlc = "Domination" }
279
+ }
280
+ potential = {
274
281
  NOT = { map_setup = map_setup_random }
275
282
  tag = AKK
283
+ NOT = { has_dlc = "Domination" }
276
284
  }
277
285
  has_country_shield = yes
278
286
 
missions/Arabian_Missions.txt CHANGED
@@ -15,6 +15,12 @@ ara_conquest = {
15
15
  tag = ADE
16
16
  }
17
17
  }
18
+ if = {
19
+ limit = {
20
+ has_dlc = "King of Kings"
21
+ }
22
+ NOT = { tag = EGY }
23
+ }
18
24
  }
19
25
 
20
26
  has_country_shield = no
missions/Byzantine_Missions.txt CHANGED
@@ -5,6 +5,7 @@ byz_western = {
5
5
  potential = {
6
6
  tag = BYZ
7
7
  NOT = { map_setup = map_setup_random }
8
+ NOT = { has_dlc = "King of Kings" }
8
9
  }
9
10
  has_country_shield = yes
10
11
 
@@ -268,6 +269,7 @@ byz_generic_slot_2 = {
268
269
  NOT = { map_setup = map_setup_random }
269
270
  tag = BYZ
270
271
  NOT = { has_dlc = "Purple Phoenix" }
272
+ NOT = { has_dlc = "King of Kings" }
271
273
  }
272
274
  has_country_shield = yes
273
275
 
@@ -356,6 +358,7 @@ byz_east = {
356
358
  potential = {
357
359
  NOT = { map_setup = map_setup_random }
358
360
  tag = BYZ
361
+ NOT = { has_dlc = "King of Kings" }
359
362
  }
360
363
 
361
364
  has_country_shield = yes
@@ -475,6 +478,7 @@ byz_generic_slot_5 = {
475
478
  NOT = { map_setup = map_setup_random }
476
479
  tag = BYZ
477
480
  NOT = { has_dlc = "Purple Phoenix" }
481
+ NOT = { has_dlc = "King of Kings" }
478
482
  }
479
483
  has_country_shield = yes
480
484
 
missions/DH_Mewar_Missions.txt CHANGED
@@ -860,7 +860,7 @@ mer_restore_kannauj_empire = {
860
860
  4497 = {
861
861
  is_state_core = root
862
862
  province_has_center_of_trade_of_level = 3
863
- NOT = { local_autonomy = 0.5 }
863
+ NOT = { local_autonomy = 1 }
864
864
  }
865
865
  }
866
866
  effect = {
missions/DH_Mughal_missions.txt CHANGED
@@ -3,11 +3,17 @@ mug_timurid_resurgence = {
3
3
  generic = no
4
4
  ai = yes
5
5
  potential_on_load = {
6
- has_dlc = "Dharma"
6
+ OR = {
7
+ has_dlc = "Dharma"
8
+ has_dlc = "King of Kings"
9
+ }
7
10
  }
8
11
  potential = {
9
12
  tag = MUG
10
- has_dlc = "Dharma"
13
+ OR = {
14
+ has_dlc = "Dharma"
15
+ has_dlc = "King of Kings"
16
+ }
11
17
  NOT = { map_setup = map_setup_random }
12
18
  }
13
19
  has_country_shield = yes
@@ -283,11 +289,17 @@ mug_towards_china = {
283
289
  generic = no
284
290
  ai = yes
285
291
  potential_on_load = {
286
- has_dlc = "Dharma"
292
+ OR = {
293
+ has_dlc = "Dharma"
294
+ has_dlc = "King of Kings"
295
+ }
287
296
  }
288
297
  potential = {
289
298
  tag = MUG
290
- has_dlc = "Dharma"
299
+ OR = {
300
+ has_dlc = "Dharma"
301
+ has_dlc = "King of Kings"
302
+ }
291
303
  NOT = { map_setup = map_setup_random }
292
304
  }
293
305
  has_country_shield = yes
@@ -488,11 +500,17 @@ mug_land_assesement = {
488
500
  generic = no
489
501
  ai = yes
490
502
  potential_on_load = {
491
- has_dlc = "Dharma"
503
+ OR = {
504
+ has_dlc = "Dharma"
505
+ has_dlc = "King of Kings"
506
+ }
492
507
  }
493
508
  potential = {
494
509
  tag = MUG
495
- has_dlc = "Dharma"
510
+ OR = {
511
+ has_dlc = "Dharma"
512
+ has_dlc = "King of Kings"
513
+ }
496
514
  NOT = { map_setup = map_setup_random }
497
515
  }
498
516
  has_country_shield = yes
@@ -524,11 +542,17 @@ mug_indus_branch = {
524
542
  generic = no
525
543
  ai = yes
526
544
  potential_on_load = {
527
- has_dlc = "Dharma"
545
+ OR = {
546
+ has_dlc = "Dharma"
547
+ has_dlc = "King of Kings"
548
+ }
528
549
  }
529
550
  potential = {
530
551
  tag = MUG
531
- has_dlc = "Dharma"
552
+ OR = {
553
+ has_dlc = "Dharma"
554
+ has_dlc = "King of Kings"
555
+ }
532
556
  NOT = { map_setup = map_setup_random }
533
557
  }
534
558
  has_country_shield = yes
@@ -577,11 +601,17 @@ mug_ganges_branch = {
577
601
  generic = no
578
602
  ai = yes
579
603
  potential_on_load = {
580
- has_dlc = "Dharma"
604
+ OR = {
605
+ has_dlc = "Dharma"
606
+ has_dlc = "King of Kings"
607
+ }
581
608
  }
582
609
  potential = {
583
610
  tag = MUG
584
- has_dlc = "Dharma"
611
+ OR = {
612
+ has_dlc = "Dharma"
613
+ has_dlc = "King of Kings"
614
+ }
585
615
  NOT = { map_setup = map_setup_random }
586
616
  }
587
617
  has_country_shield = yes
@@ -1029,11 +1059,17 @@ mug_hindustan_branch = {
1029
1059
  generic = no
1030
1060
  ai = yes
1031
1061
  potential_on_load = {
1032
- has_dlc = "Dharma"
1062
+ OR = {
1063
+ has_dlc = "Dharma"
1064
+ has_dlc = "King of Kings"
1065
+ }
1033
1066
  }
1034
1067
  potential = {
1035
1068
  tag = MUG
1036
- has_dlc = "Dharma"
1069
+ OR = {
1070
+ has_dlc = "Dharma"
1071
+ has_dlc = "King of Kings"
1072
+ }
1037
1073
  NOT = { map_setup = map_setup_random }
1038
1074
  }
1039
1075
  has_country_shield = yes
@@ -1367,11 +1403,17 @@ mug_desh = {
1367
1403
  generic = no
1368
1404
  ai = yes
1369
1405
  potential_on_load = {
1370
- has_dlc = "Dharma"
1406
+ OR = {
1407
+ has_dlc = "Dharma"
1408
+ has_dlc = "King of Kings"
1409
+ }
1371
1410
  }
1372
1411
  potential = {
1373
1412
  tag = MUG
1374
- has_dlc = "Dharma"
1413
+ OR = {
1414
+ has_dlc = "Dharma"
1415
+ has_dlc = "King of Kings"
1416
+ }
1375
1417
  NOT = { map_setup = map_setup_random }
1376
1418
  }
1377
1419
  has_country_shield = yes
@@ -1414,11 +1456,17 @@ mug_sufis = {
1414
1456
  generic = no
1415
1457
  ai = yes
1416
1458
  potential_on_load = {
1417
- has_dlc = "Dharma"
1459
+ OR = {
1460
+ has_dlc = "Dharma"
1461
+ has_dlc = "King of Kings"
1462
+ }
1418
1463
  }
1419
1464
  potential = {
1420
1465
  tag = MUG
1421
- has_dlc = "Dharma"
1466
+ OR = {
1467
+ has_dlc = "Dharma"
1468
+ has_dlc = "King of Kings"
1469
+ }
1422
1470
  NOT = { map_setup = map_setup_random }
1423
1471
  }
1424
1472
  has_country_shield = yes
@@ -1508,11 +1556,17 @@ mug_rajput_branch = {
1508
1556
  generic = no
1509
1557
  ai = yes
1510
1558
  potential_on_load = {
1511
- has_dlc = "Dharma"
1559
+ OR = {
1560
+ has_dlc = "Dharma"
1561
+ has_dlc = "King of Kings"
1562
+ }
1512
1563
  }
1513
1564
  potential = {
1514
1565
  tag = MUG
1515
- has_dlc = "Dharma"
1566
+ OR = {
1567
+ has_dlc = "Dharma"
1568
+ has_dlc = "King of Kings"
1569
+ }
1516
1570
  NOT = { map_setup = map_setup_random }
1517
1571
  }
1518
1572
  has_country_shield = yes
@@ -1754,11 +1808,17 @@ mug_hyderabad_branch = {
1754
1808
  generic = no
1755
1809
  ai = yes
1756
1810
  potential_on_load = {
1757
- has_dlc = "Dharma"
1811
+ OR = {
1812
+ has_dlc = "Dharma"
1813
+ has_dlc = "King of Kings"
1814
+ }
1758
1815
  }
1759
1816
  potential = {
1760
1817
  tag = MUG
1761
- has_dlc = "Dharma"
1818
+ OR = {
1819
+ has_dlc = "Dharma"
1820
+ has_dlc = "King of Kings"
1821
+ }
1762
1822
  NOT = { map_setup = map_setup_random }
1763
1823
  }
1764
1824
  has_country_shield = yes
@@ -1865,11 +1925,17 @@ mug_deccan_branch = {
1865
1925
  generic = no
1866
1926
  ai = yes
1867
1927
  potential_on_load = {
1868
- has_dlc = "Dharma"
1928
+ OR = {
1929
+ has_dlc = "Dharma"
1930
+ has_dlc = "King of Kings"
1931
+ }
1869
1932
  }
1870
1933
  potential = {
1871
1934
  tag = MUG
1872
- has_dlc = "Dharma"
1935
+ OR = {
1936
+ has_dlc = "Dharma"
1937
+ has_dlc = "King of Kings"
1938
+ }
1873
1939
  NOT = { map_setup = map_setup_random }
1874
1940
  }
1875
1941
  has_country_shield = yes
missions/DH_Timurid_Missions.txt CHANGED
@@ -237,7 +237,7 @@ dh_tim_india = {
237
237
  else_if = {
238
238
  limit = { is_year = 1650 }
239
239
  define_general = {
240
- name = "Aurangzîb Timurid"
240
+ name = "Aurangz�b Timurid"
241
241
  shock = 5
242
242
  fire = 5
243
243
  manuever = 2
missions/DOM_Britain_Missions.txt CHANGED
@@ -1576,6 +1576,18 @@ gbr_row_3 = {
1576
1576
  unlock_issue = {
1577
1577
  issue = act_of_exploration
1578
1578
  }
1579
+
1580
+ 126 = { add_permanent_claim = ROOT }
1581
+ 163 = { add_permanent_claim = ROOT }
1582
+ 321 = { add_permanent_claim = ROOT }
1583
+ 4559 = { add_permanent_claim = ROOT }
1584
+ corsica_sardinia_area = {
1585
+ limit = {
1586
+ NOT = { is_core = EIC }
1587
+ NOT = { is_permanent_claim = EIC }
1588
+ }
1589
+ add_permanent_claim = ROOT
1590
+ }
1579
1591
  }
1580
1592
  ai_weight = {
1581
1593
  factor = 250
@@ -2000,11 +2012,11 @@ ave_row_3 = {
2000
2012
  add_adm_power = 50
2001
2013
  }
2002
2014
  change_ruler_stat = {
2003
- stat = adm
2015
+ type = adm
2004
2016
  amount = 1
2005
2017
  }
2006
2018
  change_ruler_stat = {
2007
- stat = dip
2019
+ type = dip
2008
2020
  amount = 1
2009
2021
  }
2010
2022
  }
@@ -2388,7 +2400,6 @@ ave_row_3 = {
2388
2400
  duration = -1
2389
2401
  }
2390
2402
  custom_tooltip = ave_claim_the_empire_title_bt
2391
- set_country_flag = ave_automatic_renaming_when_government_changes
2392
2403
  country_event_with_insight = {
2393
2404
  id = flavor_gbr.20
2394
2405
  insight_tooltip = ave_claim_the_empire_title_at
@@ -2765,7 +2776,7 @@ gbr_row_4 = {
2765
2776
  }
2766
2777
  west_bengal_area = {
2767
2778
  limit = {
2768
- NOT = { is_claim = ROOT }
2779
+ NOT = { is_permanent_claim = ROOT }
2769
2780
  NOT = { is_core = ROOT }
2770
2781
  }
2771
2782
  add_permanent_claim = ROOT
@@ -3326,7 +3337,7 @@ gbr_ave_the_royal_court_slot = {
3326
3337
  legitimacy = 95
3327
3338
  }
3328
3339
  ruler_total_stats = {
3329
- stats = 5
3340
+ amount = 5
3330
3341
  }
3331
3342
  has_adm_advisor = yes
3332
3343
  has_dip_advisor = yes
missions/DOM_Chinese_Missions.txt CHANGED
@@ -94,10 +94,14 @@ ming_missions_1 = {
94
94
  who = ROOT
95
95
  value = 150
96
96
  }
97
- trust = {
98
- who = ROOT
99
- value = 70
97
+ if = {
98
+ limit = { has_dlc = "Leviathan" }
99
+ trust = {
100
+ who = ROOT
101
+ value = 70
102
+ }
100
103
  }
104
+
101
105
  }
102
106
  any_subject_country = {
103
107
  total_development = 200
@@ -111,9 +115,12 @@ ming_missions_1 = {
111
115
  who = ROOT
112
116
  value = 150
113
117
  }
114
- trust = {
115
- who = ROOT
116
- value = 70
118
+ if = {
119
+ limit = { has_dlc = "Leviathan" }
120
+ trust = {
121
+ who = ROOT
122
+ value = 70
123
+ }
117
124
  }
118
125
  }
119
126
  }
@@ -148,9 +155,12 @@ ming_missions_1 = {
148
155
  who = ROOT
149
156
  value = 150
150
157
  }
151
- trust = {
152
- who = ROOT
153
- value = 70
158
+ if = {
159
+ limit = { has_dlc = "Leviathan" }
160
+ trust = {
161
+ who = ROOT
162
+ value = 70
163
+ }
154
164
  }
155
165
  }
156
166
  }
@@ -173,9 +183,12 @@ ming_missions_1 = {
173
183
  who = ROOT
174
184
  value = 150
175
185
  }
176
- trust = {
177
- who = ROOT
178
- value = 70
186
+ if = {
187
+ limit = { has_dlc = "Leviathan" }
188
+ trust = {
189
+ who = ROOT
190
+ value = 70
191
+ }
179
192
  }
180
193
  }
181
194
  capital_scope = {
@@ -205,9 +218,12 @@ ming_missions_1 = {
205
218
  who = ROOT
206
219
  value = 150
207
220
  }
208
- trust = {
209
- who = ROOT
210
- value = 70
221
+ if = {
222
+ limit = { has_dlc = "Leviathan" }
223
+ trust = {
224
+ who = ROOT
225
+ value = 70
226
+ }
211
227
  }
212
228
  }
213
229
  add_country_modifier = {
@@ -234,9 +250,12 @@ ming_missions_1 = {
234
250
  who = ROOT
235
251
  value = 150
236
252
  }
237
- trust = {
238
- who = ROOT
239
- value = 70
253
+ if = {
254
+ limit = { has_dlc = "Leviathan" }
255
+ trust = {
256
+ who = ROOT
257
+ value = 70
258
+ }
240
259
  }
241
260
  }
242
261
  capital_scope = {
@@ -577,15 +596,15 @@ chinese_kingdoms_1 = {
577
596
  add_ruler_personality = conqueror_personality
578
597
  }
579
598
  change_ruler_stat = {
580
- stat = adm
599
+ type = adm
581
600
  amount = 3
582
601
  }
583
602
  change_ruler_stat = {
584
- stat = dip
603
+ type = dip
585
604
  amount = 3
586
605
  }
587
606
  change_ruler_stat = {
588
- stat = mil
607
+ type = mil
589
608
  amount = 3
590
609
  }
591
610
  custom_tooltip = chi_warscore_reward_tt
@@ -816,7 +835,7 @@ ming_missions_1_b = {
816
835
  add_corruption = -2
817
836
  change_government_reform_progress = 100
818
837
  change_ruler_stat = {
819
- stat = adm
838
+ type = adm
820
839
  amount = 1
821
840
  }
822
841
  }
@@ -2027,13 +2046,13 @@ ming_missions_2_b = {
2027
2046
 
2028
2047
  if = {
2029
2048
  limit = {
2030
- NOT = { has_harmonized_with = pagan }
2049
+ NOT = { has_harmonized_with = tengri_pagan_reformed }
2031
2050
  NOT = { has_harmonized_with = vajrayana }
2032
2051
  religion = confucianism
2033
2052
  }
2034
2053
  custom_tooltip = mng_db_reward_1_tt
2035
2054
  tooltip = {
2036
- add_harmonized_religion = pagan
2055
+ add_harmonized_religion = tengri_pagan_reformed
2037
2056
  add_harmonized_religion = vajrayana
2038
2057
  add_harmony = 10
2039
2058
  }
@@ -2179,17 +2198,15 @@ ming_missions_2_b = {
2179
2198
 
2180
2199
  if = {
2181
2200
  limit = {
2182
- NOT = { has_harmonized_with = pagan }
2201
+ NOT = { has_harmonized_with = tengri_pagan_reformed }
2183
2202
  NOT = { has_harmonized_with = vajrayana }
2184
2203
  religion = confucianism
2185
2204
  }
2186
- change_government_reform_progress = -250
2187
- add_harmonized_religion = pagan
2205
+ add_harmonized_religion = tengri_pagan_reformed
2188
2206
  add_harmonized_religion = vajrayana
2189
2207
  add_harmony = 10
2190
2208
  }
2191
2209
  else = {
2192
- change_government_reform_progress = -250
2193
2210
  add_country_modifier = {
2194
2211
  name = mng_decentralized_migration_modifier
2195
2212
  duration = -1
@@ -2342,29 +2359,30 @@ ming_missions_2_b = {
2342
2359
 
2343
2360
  trigger = {
2344
2361
  OR = {
2345
-
2346
- calc_true_if = {
2347
- all_subject_country = {
2348
- is_subject_of_type_with_overlord = { who = ROOT type = tributary_state }
2349
- NOT = { liberty_desire = 10 }
2350
- has_opinion = {
2351
- who = ROOT
2352
- value = 120
2353
- }
2362
+ calc_true_if = {
2363
+ all_subject_country = {
2364
+ is_subject_of_type_with_overlord = { who = ROOT type = tributary_state }
2365
+ NOT = { liberty_desire = 10 }
2366
+ has_opinion = {
2367
+ who = ROOT
2368
+ value = 120
2354
2369
  }
2355
- desc = mng_5_tribs_with_opinion_and_lib_desire_tt
2356
- amount = 5
2357
2370
  }
2358
-
2371
+ desc = mng_5_tribs_with_opinion_and_lib_desire_tt
2372
+ amount = 5
2373
+ }
2359
2374
  calc_true_if = {
2360
2375
  all_ally = {
2361
2376
  has_opinion = {
2362
2377
  who = ROOT
2363
2378
  value = 150
2364
2379
  }
2365
- trust = {
2366
- who = ROOT
2367
- value = 70
2380
+ if = {
2381
+ limit = { has_dlc = "Leviathan" }
2382
+ trust = {
2383
+ who = ROOT
2384
+ value = 70
2385
+ }
2368
2386
  }
2369
2387
  }
2370
2388
  amount = 4
@@ -2412,9 +2430,12 @@ ming_missions_2_b = {
2412
2430
  who = ROOT
2413
2431
  value = 150
2414
2432
  }
2415
- trust = {
2416
- who = ROOT
2417
- value = 70
2433
+ if = {
2434
+ limit = { has_dlc = "Leviathan" }
2435
+ trust = {
2436
+ who = ROOT
2437
+ value = 70
2438
+ }
2418
2439
  }
2419
2440
  }
2420
2441
  amount = 4
@@ -2426,9 +2447,12 @@ ming_missions_2_b = {
2426
2447
  who = ROOT
2427
2448
  value = 150
2428
2449
  }
2429
- trust = {
2430
- who = ROOT
2431
- value = 70
2450
+ if = {
2451
+ limit = { has_dlc = "Leviathan" }
2452
+ trust = {
2453
+ who = ROOT
2454
+ value = 70
2455
+ }
2432
2456
  }
2433
2457
  }
2434
2458
  add_country_modifier = {
@@ -2449,9 +2473,12 @@ ming_missions_2_b = {
2449
2473
  who = ROOT
2450
2474
  value = 150
2451
2475
  }
2452
- trust = {
2453
- who = ROOT
2454
- value = 70
2476
+ if = {
2477
+ limit = { has_dlc = "Leviathan" }
2478
+ trust = {
2479
+ who = ROOT
2480
+ value = 70
2481
+ }
2455
2482
  }
2456
2483
  }
2457
2484
  ROOT = { add_mandate = 5 }
@@ -2464,9 +2491,12 @@ ming_missions_2_b = {
2464
2491
  who = ROOT
2465
2492
  value = 150
2466
2493
  }
2467
- trust = {
2468
- who = ROOT
2469
- value = 70
2494
+ if = {
2495
+ limit = { has_dlc = "Leviathan" }
2496
+ trust = {
2497
+ who = ROOT
2498
+ value = 70
2499
+ }
2470
2500
  }
2471
2501
  }
2472
2502
  ROOT = {
@@ -2561,15 +2591,15 @@ DOM_Qing_Missions_2_b = {
2561
2591
  }
2562
2592
  }
2563
2593
  change_ruler_stat = {
2564
- stat = adm
2594
+ type = adm
2565
2595
  amount = 1
2566
2596
  }
2567
2597
  change_ruler_stat = {
2568
- stat = dip
2598
+ type = dip
2569
2599
  amount = 1
2570
2600
  }
2571
2601
  change_ruler_stat = {
2572
- stat = mil
2602
+ type = mil
2573
2603
  amount = 1
2574
2604
  }
2575
2605
  }
@@ -2936,7 +2966,6 @@ ming_missions_3 = {
2936
2966
  culture_group = tartar
2937
2967
  primary_culture = altaic_new
2938
2968
  primary_culture = manchu
2939
- primary_culture = altaic
2940
2969
  primary_culture = manchu_new
2941
2970
  }
2942
2971
  OR = {
@@ -3201,7 +3230,7 @@ ming_missions_3 = {
3201
3230
  any_country = {
3202
3231
  is_neighbor_of = ROOT
3203
3232
  NOT = { army_size = ROOT }
3204
- NOT = { development = 300 }
3233
+ NOT = { total_development = 300 }
3205
3234
  }
3206
3235
  }
3207
3236
  }
@@ -3659,7 +3688,7 @@ DOM_Qing_Missions_3 = {
3659
3688
  owner = {
3660
3689
  AND = {
3661
3690
  NOT = { tag = ROOT }
3662
- culture = ROOT
3691
+ primary_culture = ROOT
3663
3692
  army_size = ROOT
3664
3693
  }
3665
3694
  }
@@ -3672,7 +3701,7 @@ DOM_Qing_Missions_3 = {
3672
3701
  capital_scope = {
3673
3702
  region = manchuria_region
3674
3703
  }
3675
- culture = ROOT
3704
+ primary_culture = ROOT
3676
3705
  army_size = ROOT
3677
3706
  }
3678
3707
  }
@@ -3912,7 +3941,7 @@ DOM_Qing_Missions_3 = {
3912
3941
  }
3913
3942
  else = {
3914
3943
  change_ruler_stat = {
3915
- stat = adm
3944
+ type = adm
3916
3945
  amount = 2
3917
3946
  }
3918
3947
  }
@@ -4337,15 +4366,15 @@ ming_missions_3_b = {
4337
4366
  duration = 9125
4338
4367
  }
4339
4368
  change_ruler_stat = {
4340
- stat = adm
4369
+ type = adm
4341
4370
  amount = 1
4342
4371
  }
4343
4372
  change_ruler_stat = {
4344
- stat = dip
4373
+ type = dip
4345
4374
  amount = 1
4346
4375
  }
4347
4376
  change_ruler_stat = {
4348
- stat = mil
4377
+ type = mil
4349
4378
  amount = 1
4350
4379
  }
4351
4380
  }
@@ -4520,7 +4549,7 @@ DOM_Qing_Missions_3_b = {
4520
4549
  }
4521
4550
  }
4522
4551
  add_casus_belli = {
4523
- target = WUU
4552
+ target = CDL
4524
4553
  type = cb_vassalize_mission
4525
4554
  months = 180
4526
4555
  }
@@ -5751,7 +5780,7 @@ DOM_Qing_Missions_4_b = {
5751
5780
  }
5752
5781
  else = {
5753
5782
  change_ruler_stat = {
5754
- stat = adm
5783
+ type = adm
5755
5784
  amount = 2
5756
5785
  }
5757
5786
  }
@@ -6192,9 +6221,12 @@ ming_missions_5 = {
6192
6221
  who = ROOT
6193
6222
  value = 170
6194
6223
  }
6195
- trust = {
6196
- who = ROOT
6197
- value = 75
6224
+ if = {
6225
+ limit = { has_dlc = "Leviathan" }
6226
+ trust = {
6227
+ who = ROOT
6228
+ value = 75
6229
+ }
6198
6230
  }
6199
6231
  }
6200
6232
  }
@@ -6248,10 +6280,12 @@ ming_missions_5 = {
6248
6280
  }
6249
6281
  NOT = { has_dlc = "Mandate of Heaven" }
6250
6282
  }
6251
- reverse_add_casus_belli = {
6252
- target = ROOT
6253
- type = cb_vassalize_mission
6254
- months = 120
6283
+ owner = {
6284
+ reverse_add_casus_belli = {
6285
+ target = ROOT
6286
+ type = cb_vassalize_mission
6287
+ months = 120
6288
+ }
6255
6289
  }
6256
6290
  }
6257
6291
  }
@@ -6292,9 +6326,11 @@ ming_missions_5 = {
6292
6326
  custom_tooltip = mng_insight_39_tt
6293
6327
  }
6294
6328
  else = {
6295
- add_country_modifier = {
6296
- name = mng_sinicization_of_japan_modifier
6297
- duration = -1
6329
+ root = {
6330
+ add_country_modifier = {
6331
+ name = mng_sinicization_of_japan_modifier
6332
+ duration = -1
6333
+ }
6298
6334
  }
6299
6335
  }
6300
6336
  }
@@ -6333,10 +6369,12 @@ ming_missions_5 = {
6333
6369
  }
6334
6370
  NOT = { has_dlc = "Mandate of Heaven" }
6335
6371
  }
6336
- reverse_add_casus_belli = {
6337
- target = MNG
6338
- type = cb_vassalize_mission
6339
- months = 120
6372
+ owner = {
6373
+ reverse_add_casus_belli = {
6374
+ target = MNG
6375
+ type = cb_vassalize_mission
6376
+ months = 120
6377
+ }
6340
6378
  }
6341
6379
  }
6342
6380
  }
@@ -6362,20 +6400,16 @@ ming_missions_5 = {
6362
6400
  }
6363
6401
  }
6364
6402
  else = {
6365
- 1020 = {
6366
- if = {
6367
- limit = {
6368
- NOT = { owned_by = ROOT }
6369
- }
6370
- owner = {
6371
- country_event = { id = flavor_mng.39 }
6372
- }
6403
+ if = {
6404
+ limit = {
6405
+ NOT = { owns = 1020 }
6373
6406
  }
6374
- else = {
6375
- add_country_modifier = {
6376
- name = mng_sinicization_of_japan_modifier
6377
- duration = -1
6378
- }
6407
+ country_event = { id = flavor_mng.39 }
6408
+ }
6409
+ else = {
6410
+ add_country_modifier = {
6411
+ name = mng_sinicization_of_japan_modifier
6412
+ duration = -1
6379
6413
  }
6380
6414
  }
6381
6415
  }
@@ -7047,7 +7081,7 @@ DOM_Qing_Missions_5_intial = {
7047
7081
  has_manufactory_trigger = yes
7048
7082
  value = 50
7049
7083
  }
7050
- has_institution = industrial_revolution
7084
+ has_institution = industrialization
7051
7085
  custom_trigger_tooltip = {
7052
7086
  tooltip = qng_branching_mission_isolated_tt
7053
7087
  always = no
@@ -7450,7 +7484,7 @@ DOM_Qing_Missions_5_b = {
7450
7484
  }
7451
7485
  }
7452
7486
  }
7453
- 1310 = {
7487
+ 137 = {
7454
7488
  every_trade_node_member_country = {
7455
7489
  limit = {
7456
7490
  NOT = { tag = ROOT }
@@ -7540,7 +7574,7 @@ DOM_Qing_Missions_5_b = {
7540
7574
  }
7541
7575
  }
7542
7576
  }
7543
- 1317 = {
7577
+ 377 = {
7544
7578
  every_trade_node_member_country = {
7545
7579
  limit = {
7546
7580
  NOT = { tag = ROOT }
missions/DOM_French_Missions.txt CHANGED
@@ -125,7 +125,10 @@ french_missions_1 = {
125
125
  }
126
126
  effect = {
127
127
  if = {
128
- limit = { has_dlc = "Emperor" }
128
+ limit = {
129
+ has_dlc = "Emperor"
130
+ BUR = { ai = yes }
131
+ }
129
132
  custom_tooltip = fra_if_bur_subject_and_emperor_dlc_tt
130
133
  tooltip = {
131
134
  country_event = { id = incidents_bur_inheritance.501 }
@@ -582,7 +585,7 @@ french_missions_1_hre_branch = {
582
585
  }
583
586
  else = {
584
587
  change_ruler_stat = {
585
- stat = dip
588
+ type = dip
586
589
  amount = 1
587
590
  }
588
591
  }
@@ -1296,7 +1299,7 @@ french_rev_missions_1 = {
1296
1299
  trigger = {
1297
1300
  iberia_region = {
1298
1301
  type = all
1299
- NOT = { average_autonomy_above_min = 5 }
1302
+ NOT = { local_autonomy_above_min = 5 }
1300
1303
  country_or_non_sovereign_subject_holds = ROOT
1301
1304
  }
1302
1305
  OR = {
@@ -1757,9 +1760,12 @@ french_missions_2_Continuation_b = {
1757
1760
  who = ROOT
1758
1761
  value = 180
1759
1762
  }
1760
- trust = {
1761
- who = ROOT
1762
- value = 80
1763
+ if = {
1764
+ limit = { has_dlc = "Leviathan" }
1765
+ trust = {
1766
+ who = ROOT
1767
+ value = 80
1768
+ }
1763
1769
  }
1764
1770
  }
1765
1771
  AND = {
@@ -1801,9 +1807,12 @@ french_missions_2_Continuation_b = {
1801
1807
  who = ROOT
1802
1808
  value = 180
1803
1809
  }
1804
- trust = {
1805
- who = ROOT
1806
- value = 80
1810
+ if = {
1811
+ limit = { has_dlc = "Leviathan" }
1812
+ trust = {
1813
+ who = ROOT
1814
+ value = 80
1815
+ }
1807
1816
  }
1808
1817
  }
1809
1818
  add_country_modifier = {
@@ -1862,9 +1871,12 @@ french_missions_2_Continuation_b = {
1862
1871
  who = ROOT
1863
1872
  value = 180
1864
1873
  }
1865
- trust = {
1866
- who = ROOT
1867
- value = 80
1874
+ if = {
1875
+ limit = { has_dlc = "Leviathan" }
1876
+ trust = {
1877
+ who = ROOT
1878
+ value = 80
1879
+ }
1868
1880
  }
1869
1881
  }
1870
1882
  add_country_modifier = {
@@ -2639,7 +2651,7 @@ french_missions_3_charlemagne_path = {
2639
2651
  }
2640
2652
  effect = {
2641
2653
  change_ruler_stat = {
2642
- stat = dip
2654
+ type = dip
2643
2655
  amount = 2
2644
2656
  }
2645
2657
  if = {
@@ -3082,7 +3094,7 @@ french_missions_3_continuation_after_hre_missions = {
3082
3094
  position = 7
3083
3095
  provinces_to_highlight = {
3084
3096
  if = {
3085
- limit = { has_country_flag = fra_papal_lap_dop_flag }
3097
+ limit = { root = { has_country_flag = fra_papal_lap_dop_flag } }
3086
3098
  area = lazio_area
3087
3099
  NOT = {
3088
3100
  OR = {
@@ -3287,7 +3299,7 @@ french_missions_3_normal_continued = {
3287
3299
  }
3288
3300
  effect = {
3289
3301
  1272 = { change_province_name = "La Manche" }
3290
- 1269 = { change_province_name = "Basse-Côte" }
3302
+ 1269 = { change_province_name = "Basse-C�te" }
3291
3303
  add_country_modifier = {
3292
3304
  name = fra_channel_dominance_modifier
3293
3305
  duration = -1
@@ -3647,6 +3659,7 @@ french_rev_missions_3 = {
3647
3659
  total_development = 500
3648
3660
  }
3649
3661
  override_country_name = NCP
3662
+ set_country_flag = is_NCP_flag
3650
3663
  set_country_flag = has_overriden_name_flag
3651
3664
  change_country_color = {
3652
3665
  color = { 65 105 225 }
@@ -3683,7 +3696,7 @@ french_rev_missions_3 = {
3683
3696
  }
3684
3697
 
3685
3698
  change_ruler_stat = {
3686
- stat = adm
3699
+ type = adm
3687
3700
  amount = 1
3688
3701
  }
3689
3702
  }
missions/DOM_Japanese_Missions.txt CHANGED
@@ -123,7 +123,7 @@ DOM_japanse_missions_1 = {
123
123
  limit = { has_dlc = "Rights of Man" NOT = { num_of_ruler_traits = { amount = 3 } } }
124
124
  add_ruler_personality = scholar_personality
125
125
  }
126
- else = { change_ruler_stat = { stat = dip amount = 1 } }
126
+ else = { change_ruler_stat = { type = dip amount = 1 } }
127
127
  }
128
128
 
129
129
  custom_tooltip = jap_trade_with_the_west_tt
@@ -159,7 +159,7 @@ DOM_japanse_missions_1 = {
159
159
  limit = { has_dlc = "Rights of Man" NOT = { num_of_ruler_traits = { amount = 3 } } }
160
160
  add_ruler_personality = scholar_personality
161
161
  }
162
- else = { change_ruler_stat = { stat = dip amount = 1 } }
162
+ else = { change_ruler_stat = { type = dip amount = 1 } }
163
163
 
164
164
  }
165
165
  else_if = {
@@ -239,7 +239,7 @@ DOM_japanse_missions_1 = {
239
239
  limit = { has_dlc = "Rights of Man" NOT = { num_of_ruler_traits = { amount = 3 } } }
240
240
  add_ruler_personality = great_engineer_personality
241
241
  }
242
- else = { change_ruler_stat = { stat = adm amount = 1 } }
242
+ else = { change_ruler_stat = { type = adm amount = 1 } }
243
243
  change_government_reform_progress = 50
244
244
  add_government_reform = jap_gokaido_reform
245
245
  }
@@ -1043,13 +1043,13 @@ japanese_missions_eoc_2 = {
1043
1043
 
1044
1044
  if = {
1045
1045
  limit = {
1046
- NOT = { has_harmonized_with = pagan }
1046
+ NOT = { has_harmonized_with = tengri_pagan_reformed }
1047
1047
  NOT = { has_harmonized_with = vajrayana }
1048
1048
  religion = confucianism
1049
1049
  }
1050
1050
  custom_tooltip = mng_db_reward_1_tt
1051
1051
  tooltip = {
1052
- add_harmonized_religion = pagan
1052
+ add_harmonized_religion = tengri_pagan_reformed
1053
1053
  add_harmonized_religion = vajrayana
1054
1054
  add_harmony = 10
1055
1055
  }
@@ -1196,16 +1196,16 @@ japanese_missions_eoc_2 = {
1196
1196
  if = {
1197
1197
  limit = {
1198
1198
  OR = {
1199
- NOT = { has_harmonized_with = pagan }
1199
+ NOT = { has_harmonized_with = tengri_pagan_reformed }
1200
1200
  NOT = { has_harmonized_with = vajrayana }
1201
1201
  }
1202
1202
  religion = confucianism
1203
1203
  has_reform = decentralize_reform
1204
1204
  }
1205
- add_harmonized_religion = pagan
1205
+ add_harmonized_religion = tengri_pagan_reformed
1206
1206
  add_harmonized_religion = vajrayana
1207
1207
  add_harmony = 10
1208
- change_government_reform_progress = -250
1208
+
1209
1209
  }
1210
1210
  else_if = {
1211
1211
  limit = { has_reform = decentralize_reform }
@@ -1376,9 +1376,12 @@ japanese_missions_eoc_2 = {
1376
1376
  who = ROOT
1377
1377
  value = 150
1378
1378
  }
1379
- trust = {
1380
- who = ROOT
1381
- value = 70
1379
+ if = {
1380
+ limit = { has_dlc = "Leviathan" }
1381
+ trust = {
1382
+ who = ROOT
1383
+ value = 70
1384
+ }
1382
1385
  }
1383
1386
  }
1384
1387
  amount = 4
@@ -1426,9 +1429,12 @@ japanese_missions_eoc_2 = {
1426
1429
  who = ROOT
1427
1430
  value = 150
1428
1431
  }
1429
- trust = {
1430
- who = ROOT
1431
- value = 70
1432
+ if = {
1433
+ limit = { has_dlc = "Leviathan" }
1434
+ trust = {
1435
+ who = ROOT
1436
+ value = 70
1437
+ }
1432
1438
  }
1433
1439
  }
1434
1440
  amount = 4
@@ -1440,9 +1446,12 @@ japanese_missions_eoc_2 = {
1440
1446
  who = ROOT
1441
1447
  value = 150
1442
1448
  }
1443
- trust = {
1444
- who = ROOT
1445
- value = 70
1449
+ if = {
1450
+ limit = { has_dlc = "Leviathan" }
1451
+ trust = {
1452
+ who = ROOT
1453
+ value = 70
1454
+ }
1446
1455
  }
1447
1456
  }
1448
1457
  add_country_modifier = {
@@ -1463,9 +1472,12 @@ japanese_missions_eoc_2 = {
1463
1472
  who = ROOT
1464
1473
  value = 150
1465
1474
  }
1466
- trust = {
1467
- who = ROOT
1468
- value = 70
1475
+ if = {
1476
+ limit = { has_dlc = "Leviathan" }
1477
+ trust = {
1478
+ who = ROOT
1479
+ value = 70
1480
+ }
1469
1481
  }
1470
1482
  }
1471
1483
  ROOT = { add_mandate = 5 }
@@ -1478,9 +1490,12 @@ japanese_missions_eoc_2 = {
1478
1490
  who = ROOT
1479
1491
  value = 150
1480
1492
  }
1481
- trust = {
1482
- who = ROOT
1483
- value = 70
1493
+ if = {
1494
+ limit = { has_dlc = "Leviathan" }
1495
+ trust = {
1496
+ who = ROOT
1497
+ value = 70
1498
+ }
1484
1499
  }
1485
1500
  }
1486
1501
  ROOT = {
@@ -1798,6 +1813,7 @@ DOM_japanse_missions_3_a = {
1798
1813
  if = {
1799
1814
  limit = { has_country_flag = a_kirishitan_realm }
1800
1815
  override_country_name = KRJ
1816
+ set_country_flag = is_KRJ_flag
1801
1817
  set_country_flag = has_overriden_name_flag
1802
1818
  add_country_modifier = {
1803
1819
  name = jap_protectors_east_catholicism
@@ -1877,16 +1893,14 @@ DOM_japanse_missions_3_aa = {
1877
1893
  always = no
1878
1894
  }
1879
1895
  religion = catholic
1880
- development_in_provinces = {
1881
- value = 1000
1882
- religion = catholic
1883
- }
1884
- calc_true_if = {
1885
- all_country = {
1886
- is_force_converted = yes
1887
- religion = ROOT
1896
+ OR = {
1897
+ development_in_provinces = {
1898
+ value = 1000
1899
+ religion = catholic
1888
1900
  }
1889
- amount = 10
1901
+ is_defender_of_faith = yes
1902
+ is_great_power = yes
1903
+ full_idea_group = religious_ideas
1890
1904
  }
1891
1905
  }
1892
1906
  effect = {
@@ -1969,35 +1983,43 @@ DOM_japanse_missions_3_b = {
1969
1983
  hidden_effect = {
1970
1984
  if = {
1971
1985
  limit = {
1972
- absolutism = 100
1986
+ absolutism = 99
1973
1987
  if = {
1974
1988
  limit = { has_estate = estate_nobles }
1975
- num_of_estate_privileges = {
1976
- estate = estate_nobles
1977
- value = 6
1989
+ NOT = {
1990
+ num_of_estate_privileges = {
1991
+ estate = estate_nobles
1992
+ value = 6
1993
+ }
1978
1994
  }
1979
1995
  }
1980
1996
  if = {
1981
1997
  limit = { has_estate = estate_burghers }
1982
- num_of_estate_privileges = {
1983
- estate = estate_burghers
1984
- value = 6
1998
+ NOT = {
1999
+ num_of_estate_privileges = {
2000
+ estate = estate_burghers
2001
+ value = 6
2002
+ }
1985
2003
  }
1986
2004
  }
1987
2005
  if = {
1988
2006
  limit = { has_estate = estate_church }
1989
- num_of_estate_privileges = {
1990
- estate = estate_church
1991
- value = 6
2007
+ NOT = {
2008
+ num_of_estate_privileges = {
2009
+ estate = estate_church
2010
+ value = 6
2011
+ }
1992
2012
  }
1993
2013
  }
1994
2014
  }
1995
2015
  set_country_flag = has_overriden_name_flag
1996
2016
  override_country_name = JPS
2017
+ set_country_flag = is_JPS_flag
1997
2018
  add_government_reform = absolute_shogunate_reform
1998
2019
  }
1999
2020
  else = {
2000
2021
  override_country_name = JPE
2022
+ set_country_flag = is_JPE_flag
2001
2023
  set_country_flag = has_overriden_name_flag
2002
2024
  set_country_flag = JPE_gov_flag
2003
2025
  country_event = { id = flavor_jap.65 }
@@ -2033,24 +2055,23 @@ DOM_japanse_missions_3_c = {
2033
2055
  }
2034
2056
  trigger = {
2035
2057
  religion = catholic
2036
- development_in_provinces = {
2037
- value = 1000
2038
- religion_group = christian
2039
- }
2040
2058
  OR = {
2059
+ development_in_provinces = {
2060
+ value = 1000
2061
+ religion = catholic
2062
+ }
2041
2063
  is_defender_of_faith = yes
2042
2064
  is_great_power = yes
2043
- if = {
2044
- limit = { has_estate = estate_church }
2045
- estate_loyalty = {
2046
- estate = estate_church
2047
- loyalty = 60
2048
- }
2049
- }
2050
- full_idea_group = religious_ideas
2065
+ full_idea_group = religious_ideas
2051
2066
  }
2052
2067
  }
2053
2068
  effect = {
2069
+ if = {
2070
+ limit = {
2071
+ NOT = { government = monarchy }
2072
+ }
2073
+ change_government = monarchy
2074
+ }
2054
2075
  add_government_reform = land_christian_sun_reform
2055
2076
 
2056
2077
  custom_tooltip = jap_winning_battles_gains_papal_influence_tt
@@ -2349,15 +2370,15 @@ japanese_missions_eoc_3 = {
2349
2370
  duration = 9125
2350
2371
  }
2351
2372
  change_ruler_stat = {
2352
- stat = adm
2373
+ type = adm
2353
2374
  amount = 1
2354
2375
  }
2355
2376
  change_ruler_stat = {
2356
- stat = dip
2377
+ type = dip
2357
2378
  amount = 1
2358
2379
  }
2359
2380
  change_ruler_stat = {
2360
- stat = mil
2381
+ type = mil
2361
2382
  amount = 1
2362
2383
  }
2363
2384
  }
@@ -3324,7 +3345,7 @@ DOM_japanse_missions_5 = {
3324
3345
  }
3325
3346
 
3326
3347
  change_ruler_stat = {
3327
- stat = mil
3348
+ type = mil
3328
3349
  amount = 1
3329
3350
  }
3330
3351
  }
@@ -3805,22 +3826,31 @@ japanese_missions_eoc_5 = {
3805
3826
  set_country_flag = mng_trade_eff_per_dip_advisor_level_flag
3806
3827
  }
3807
3828
  else = {
3808
- add_province_modifier = {
3809
- name = mng_safe_coasts_modifier
3810
- duration = 9125
3829
+ every_owned_province = {
3830
+ limit = {
3831
+ has_coast_defense_building_trigger = yes
3832
+ development = 20
3833
+ }
3834
+ add_province_modifier = {
3835
+ name = mng_safe_coasts_modifier
3836
+ duration = 9125
3837
+ }
3838
+ if = {
3839
+ limit = { has_dlc = "Mandate of Heaven" }
3840
+ add_prosperity = 100
3841
+ }
3842
+ else = {
3843
+ add_base_production = 1
3844
+ }
3811
3845
  }
3812
3846
  set_country_flag = mng_dev_per_adm_advisor_level_flag
3813
3847
  if = {
3814
3848
  limit = { has_dlc = "Mandate of Heaven" }
3815
- add_prosperity = 100
3816
3849
  add_mandate = 5
3817
3850
  }
3818
- else = {
3819
- add_base_production = 1
3820
- owner = {
3821
- add_prestige_or_monarch_power = { amount = 35 }
3822
- }
3823
- }
3851
+ else = {
3852
+ add_prestige_or_monarch_power = { amount = 35 }
3853
+ }
3824
3854
  }
3825
3855
  }
3826
3856
  }
missions/DOM_Ottoman_Missions.txt CHANGED
@@ -791,7 +791,7 @@ tur_conquest_of_europe = {
791
791
  }
792
792
 
793
793
  tur_address_firman = {
794
- #Credit to Big Boss
794
+
795
795
  icon = mission_the_firman
796
796
  required_missions = { }
797
797
  position = 10
@@ -1934,9 +1934,12 @@ tur_african_conquest = {
1934
1934
  who = ROOT
1935
1935
  value = 150
1936
1936
  }
1937
- trust = {
1938
- who = ROOT
1939
- value = 80
1937
+ if = {
1938
+ limit = { has_dlc = "Leviathan" }
1939
+ trust = {
1940
+ who = ROOT
1941
+ value = 80
1942
+ }
1940
1943
  }
1941
1944
  }
1942
1945
  num_of_owned_provinces_with = {
@@ -2066,6 +2069,7 @@ tur_egyptian_conquest = {
2066
2069
  add_permanent_claim_province = { province = 1773 }
2067
2070
  add_permanent_claim_province = { province = 4699 }
2068
2071
  add_permanent_claim_province = { province = 4698 }
2072
+ add_permanent_claim_province = { province = 1764 }
2069
2073
  add_prestige = 5
2070
2074
  }
2071
2075
 
@@ -2118,7 +2122,7 @@ tur_egyptian_conquest = {
2118
2122
  }
2119
2123
 
2120
2124
  tur_rebuild_the_hagia_sophia = {
2121
- icon = mission_hagia_sophia
2125
+ icon = byz_city_of_worlds_desire
2122
2126
  required_missions = { tur_city_of_worlds_desire }
2123
2127
  position = 4
2124
2128
  provinces_to_highlight = {
@@ -2553,7 +2557,7 @@ tur_egyptian_conquest = {
2553
2557
  remove_country_modifier = tur_mamlukian_administration
2554
2558
  }
2555
2559
  change_ruler_stat = {
2556
- stat = dip
2560
+ type = dip
2557
2561
  amount = 2
2558
2562
  }
2559
2563
  }
@@ -3059,7 +3063,7 @@ tur_arabian_conquest = {
3059
3063
  }
3060
3064
 
3061
3065
  tur_fate_of_the_patriarchate = {
3062
- icon = mission_pf_cross
3066
+ icon = mission_hagia_sophia
3063
3067
  required_missions = { tur_city_of_worlds_desire }
3064
3068
  position = 4
3065
3069
  provinces_to_highlight = {
@@ -3246,7 +3250,7 @@ tur_arabian_conquest = {
3246
3250
  }
3247
3251
  }
3248
3252
 
3249
- tur_crimean_khaganate = { #- written by Big Boss
3253
+ tur_crimean_khaganate = {
3250
3254
  icon = mission_chinese_general_riding
3251
3255
  required_missions = { }
3252
3256
  position = 6
@@ -3270,10 +3274,13 @@ tur_arabian_conquest = {
3270
3274
  who = ROOT
3271
3275
  value = 150
3272
3276
  }
3273
- trust = {
3274
- who = ROOT
3275
- value = 60
3276
- }
3277
+ if = {
3278
+ limit = { has_dlc = "Leviathan" }
3279
+ trust = {
3280
+ who = ROOT
3281
+ value = 60
3282
+ }
3283
+ }
3277
3284
  }
3278
3285
  AND = {
3279
3286
  azov_area = {
@@ -3521,7 +3528,6 @@ tur_arabian_conquest = {
3521
3528
  }
3522
3529
 
3523
3530
  tur_seize_the_caliphate = {
3524
- #Localization written by Big Boss
3525
3531
  icon = mission_the_caliph
3526
3532
  required_missions = {
3527
3533
  tur_conquer_egypt
@@ -3565,7 +3571,7 @@ tur_arabian_conquest = {
3565
3571
  prestige = 50
3566
3572
  if = {
3567
3573
  limit = { religion = sunni }
3568
- has_country_modifier = khalifah
3574
+ has_ruler_modifier = khalifah
3569
3575
  }
3570
3576
  }
3571
3577
  effect = {
@@ -4290,15 +4296,15 @@ tur_non_muslim_path = {
4290
4296
  duration = -1
4291
4297
  }
4292
4298
  change_ruler_stat = {
4293
- stat = adm
4299
+ type = adm
4294
4300
  amount = 1
4295
4301
  }
4296
4302
  change_ruler_stat = {
4297
- stat = dip
4303
+ type = dip
4298
4304
  amount = 1
4299
4305
  }
4300
4306
  change_ruler_stat = {
4301
- stat = mil
4307
+ type = mil
4302
4308
  amount = 1
4303
4309
  }
4304
4310
  }
@@ -4366,7 +4372,7 @@ tur_issue_the_kannuname_slot = {
4366
4372
  insight_tooltip = INSIGHT_JUST_TOOLTIP
4367
4373
  effect_tooltip = "
4368
4374
  change_ruler_stat = {
4369
- stat = adm
4375
+ type = adm
4370
4376
  amount = 2
4371
4377
  }
4372
4378
  add_ruler_modifier = {
@@ -4706,7 +4712,7 @@ tur_persian_conquest = {
4706
4712
  add_permanent_claim = ROOT
4707
4713
  }
4708
4714
  change_ruler_stat = {
4709
- stat = dip
4715
+ type = dip
4710
4716
  amount = 2
4711
4717
  }
4712
4718
  country_event_with_insight = {
@@ -4767,7 +4773,7 @@ tur_persian_conquest = {
4767
4773
  }
4768
4774
 
4769
4775
  tur_imperial_fabrics = {
4770
- #Credit to Big Boss
4776
+
4771
4777
  icon = mission_finest_carpets
4772
4778
  required_missions = { tur_the_silk_road }
4773
4779
  position = 11
missions/DOM_Russia_Missions.txt CHANGED
@@ -82,7 +82,7 @@ mos_rus_handle_succession = {
82
82
  legitimacy = 90
83
83
  }
84
84
  ruler_total_stats = {
85
- stats = 10
85
+ amount = 10
86
86
  }
87
87
  }
88
88
  effect = {
@@ -2166,13 +2166,7 @@ mos_rus_russian_consolidation = {
2166
2166
  has_dlc = "Third Rome"
2167
2167
  religion = orthodox
2168
2168
  }
2169
- OR = {
2170
- current_icon = icon_climacus
2171
- current_icon = icon_eleusa
2172
- current_icon = icon_michael
2173
- current_icon = icon_nicholas
2174
- current_icon = icon_pancreator
2175
- }
2169
+ has_orthodox_religious_icon_trigger = yes
2176
2170
  }
2177
2171
  }
2178
2172
  effect = {
missions/DOM_Spain_Missions.txt CHANGED
@@ -903,7 +903,7 @@ dom_cas_missions_2 = {
903
903
  limit = {
904
904
  NOT = { religion = catholic }
905
905
  }
906
- has_advisor = inquisitor
906
+ inquisitor = 1
907
907
  }
908
908
  }
909
909
  effect = {
@@ -957,7 +957,7 @@ dom_cas_missions_2 = {
957
957
  }
958
958
  effect = {
959
959
  add_power_projection = {
960
- type = 25_permanent_power_projection
960
+ type = 10_permanent_power_projection
961
961
  amount = 10
962
962
  }
963
963
  custom_tooltip = zim_amongst_the_great_powers_tt
@@ -1010,7 +1010,10 @@ dom_cas_missions_2 = {
1010
1010
  }
1011
1011
  OR = {
1012
1012
  navy_tradition = 30
1013
- has_flagship = yes
1013
+ if = {
1014
+ limit = { has_dlc = "Golden Century" }
1015
+ has_flagship = yes
1016
+ }
1014
1017
  num_of_heavy_ship = 8
1015
1018
  }
1016
1019
  }
@@ -1083,7 +1086,7 @@ dom_cas_missions_2 = {
1083
1086
  }
1084
1087
  else = {
1085
1088
  change_ruler_stat = {
1086
- stat = mil
1089
+ type = mil
1087
1090
  amount = 2
1088
1091
  }
1089
1092
  }
@@ -1261,9 +1264,15 @@ dom_cas_missions_2_b = {
1261
1264
  effect = {
1262
1265
  set_government_rank = 3
1263
1266
 
1264
- add_country_modifier = {
1265
- name = ara_a_new_power_modifier
1266
- duration = -1
1267
+ if = {
1268
+ limit = { has_dlc = "Golden Century" }
1269
+ add_country_modifier = {
1270
+ name = ara_a_new_power_modifier
1271
+ duration = -1
1272
+ }
1273
+ }
1274
+ else = {
1275
+ add_prestige_or_monarch_power = { amount = 50 }
1267
1276
  }
1268
1277
  }
1269
1278
  }
@@ -1368,11 +1377,11 @@ dom_cas_missions_2_b = {
1368
1377
  add_claim = ROOT
1369
1378
  }
1370
1379
  change_ruler_stat = {
1371
- stat = dip
1380
+ type = dip
1372
1381
  amount = 1
1373
1382
  }
1374
1383
  change_ruler_stat = {
1375
- stat = mil
1384
+ type = mil
1376
1385
  amount = 1
1377
1386
  }
1378
1387
  }
@@ -2139,15 +2148,15 @@ dom_cas_missions_3 = {
2139
2148
  }
2140
2149
 
2141
2150
  change_ruler_stat = {
2142
- stat = adm
2151
+ type = adm
2143
2152
  amount = 1
2144
2153
  }
2145
2154
  change_ruler_stat = {
2146
- stat = dip
2155
+ type = dip
2147
2156
  amount = 1
2148
2157
  }
2149
2158
  change_ruler_stat = {
2150
- stat = mil
2159
+ type = mil
2151
2160
  amount = 1
2152
2161
  }
2153
2162
  }
@@ -2774,15 +2783,15 @@ dom_cas_missions_4 = {
2774
2783
  duration = 9125
2775
2784
  }
2776
2785
  change_ruler_stat = {
2777
- stat = adm
2786
+ type = adm
2778
2787
  amount = 1
2779
2788
  }
2780
2789
  change_ruler_stat = {
2781
- stat = dip
2790
+ type = dip
2782
2791
  amount = 1
2783
2792
  }
2784
2793
  change_ruler_stat = {
2785
- stat = mil
2794
+ type = mil
2786
2795
  amount = 1
2787
2796
  }
2788
2797
  }
@@ -2833,15 +2842,15 @@ dom_cas_missions_4 = {
2833
2842
  duration = 9125
2834
2843
  }
2835
2844
  change_ruler_stat = {
2836
- stat = adm
2845
+ type = adm
2837
2846
  amount = 1
2838
2847
  }
2839
2848
  change_ruler_stat = {
2840
- stat = dip
2849
+ type = dip
2841
2850
  amount = 1
2842
2851
  }
2843
2852
  change_ruler_stat = {
2844
- stat = mil
2853
+ type = mil
2845
2854
  amount = 1
2846
2855
  }
2847
2856
  }
@@ -3330,13 +3339,13 @@ dom_cas_missions_4_c = {
3330
3339
  custom_tooltip = por_more_likely_to_get_expansionist_tt
3331
3340
  set_country_flag = por_more_likely_to_get_expansionist_flag
3332
3341
  change_ruler_stat = {
3333
- stat = dip
3342
+ type = dip
3334
3343
  amount = 1
3335
3344
  }
3336
3345
  }
3337
3346
  else = {
3338
3347
  change_ruler_stat = {
3339
- stat = dip
3348
+ type = dip
3340
3349
  amount = 2
3341
3350
  }
3342
3351
  add_prestige_or_monarch_power = { amount = 10 }
@@ -3442,7 +3451,7 @@ dom_cas_missions_4_c = {
3442
3451
  fire = 5
3443
3452
  manuever = 6
3444
3453
  siege = 1
3445
- name = "Hern�n Cort�s"
3454
+ name = "Hern�n Cort�s"
3446
3455
  }
3447
3456
  490 = {
3448
3457
  add_base_production = 3
@@ -4445,7 +4454,7 @@ dom_cas_missions_5_c = {
4445
4454
  }
4446
4455
  else = {
4447
4456
  change_ruler_stat = {
4448
- stat = dip
4457
+ type = dip
4449
4458
  amount = 1
4450
4459
  }
4451
4460
  add_mercantilism = 3
missions/EMP_Austrian_Missions.txt CHANGED
@@ -839,7 +839,7 @@ emp_hab_minorities_branch = {
839
839
  NOT = { accepted_culture = hungarian }
840
840
  NOT = { primary_culture = hungarian }
841
841
  }
842
- add_accepted_culture_or_dip_power = { culture = hungarian }
842
+ add_accepted_culture_or_dip_power = { culture = hungarian dip_reward = yes }
843
843
  if = {
844
844
  limit = {
845
845
  153 = { culture = austrian }
@@ -865,10 +865,10 @@ emp_hab_minorities_branch = {
865
865
  }
866
866
  if = {
867
867
  limit = { has_updated_culture = { culture = slavic } }
868
- add_accepted_culture_or_dip_power = { culture = slovak_new }
868
+ add_accepted_culture_or_dip_power = { culture = slovak_new dip_reward = yes }
869
869
  }
870
870
  else = {
871
- add_accepted_culture_or_dip_power = { culture = slovak }
871
+ add_accepted_culture_or_dip_power = { culture = slovak dip_reward = yes }
872
872
  }
873
873
  if = {
874
874
  limit = {
missions/EMP_Burgundian_Missions.txt CHANGED
@@ -404,7 +404,7 @@ emp_burgundy_2 = {
404
404
  }
405
405
  }
406
406
  ai_weight = {
407
- factor = 500 #Natural întegration
407
+ factor = 500 #Natural �ntegration
408
408
  }
409
409
  }
410
410
  emp_bur_secure_the_lowlands = {
missions/EMP_French_Missions.txt CHANGED
@@ -1439,7 +1439,7 @@ emp_france_missions_3 = {
1439
1439
  indo_china_region = {
1440
1440
  limit = {
1441
1441
  NOT = { is_core = ROOT }
1442
- NOT = { is_claim = ROOT }
1442
+ NOT = { is_permanent_claim = ROOT }
1443
1443
  }
1444
1444
  add_permanent_claim = ROOT
1445
1445
  }
missions/EMP_Prussian_Missions.txt CHANGED
@@ -186,7 +186,7 @@ emp_bra_pru_1 = {
186
186
  effect = {
187
187
  if = {
188
188
  limit = { has_dlc = "Domination" }
189
- add_accepted_culture_or_dip_power = { culture = prussian }
189
+ add_accepted_culture_or_dip_power = { culture = prussian dip_reward = yes }
190
190
  custom_tooltip = pru_spread_dev_tt
191
191
  hidden_effect = {
192
192
  west_prussia_area = {
@@ -393,7 +393,15 @@ emp_bra_pru_1_b = {
393
393
 
394
394
 
395
395
  if = {
396
- limit = { has_dlc = "Domination" }
396
+ limit = {
397
+ has_dlc = "Domination"
398
+ OR = {
399
+ tag = PRU
400
+ tag = GER
401
+ has_country_flag = access_to_prussian_militarization_flag #For the modders
402
+ }
403
+ has_reform = prussian_monarchy
404
+ }
397
405
  custom_tooltip = pru_access_normal_militarization_tt
398
406
  set_country_flag = enable_second_mil_level_flag
399
407
  regenerate_government_mechanics = yes
@@ -438,7 +446,15 @@ emp_bra_pru_1_b = {
438
446
 
439
447
 
440
448
  if = {
441
- limit = { has_dlc = "Domination" }
449
+ limit = {
450
+ has_dlc = "Domination"
451
+ OR = {
452
+ tag = PRU
453
+ tag = GER
454
+ has_country_flag = access_to_prussian_militarization_flag #For the modders
455
+ }
456
+ has_reform = prussian_monarchy
457
+ }
442
458
  custom_tooltip = pru_access_advanced_militarization_tt
443
459
  clr_country_flag = enable_second_mil_level_flag
444
460
  set_country_flag = enable_third_mil_level_flag
@@ -508,11 +524,15 @@ emp_bra_pru_2 = {
508
524
  add_permanent_claim = ROOT
509
525
  }
510
526
  if = {
511
- limit = { has_dlc = "Domination" NOT = { has_country_flag = declined_ANS_union_flag } }
527
+ limit = {
528
+ has_dlc = "Domination"
529
+ NOT = { has_country_flag = declined_ANS_union_flag }
530
+ is_or_was_tag = { tag = BRA }
531
+ }
512
532
  custom_tooltip = pru_access_franconian_conquest_success_tt
513
533
  tooltip = {
514
534
  change_ruler_stat = {
515
- stat = mil
535
+ type = mil
516
536
  amount = 1
517
537
  }
518
538
  add_power_projection = {
@@ -523,6 +543,9 @@ emp_bra_pru_2 = {
523
543
  custom_tooltip = zim_amongst_the_great_powers_tt
524
544
  custom_tooltip = pru_access_franconian_conquest_failure_tt
525
545
  }
546
+ else = {
547
+ add_dip_power = 50
548
+ }
526
549
  }
527
550
  }
528
551
  emp_brapru_franconian_conquest = {
@@ -557,12 +580,12 @@ emp_bra_pru_2 = {
557
580
  }
558
581
  custom_tooltip = zim_amongst_the_great_powers_tt
559
582
  change_ruler_stat = {
560
- stat = mil
583
+ type = mil
561
584
  amount = 1
562
585
  }
563
586
  }
564
587
  add_mil_power = 100
565
- add_accepted_culture_or_dip_power = { culture = franconian }
588
+ add_accepted_culture_or_dip_power = { culture = franconian dip_reward = yes }
566
589
  }
567
590
  ai_weight = {
568
591
  factor = 75
@@ -921,7 +944,7 @@ emp_bra_pru_3 = {
921
944
  has_dlc = "Domination"
922
945
  }
923
946
  change_ruler_stat = {
924
- stat = mil
947
+ type = mil
925
948
  amount = 1
926
949
  }
927
950
  }
@@ -1312,7 +1335,7 @@ emp_bra_pru_4 = {
1312
1335
  if = {
1313
1336
  limit = { has_dlc = "Domination" }
1314
1337
  change_ruler_stat = {
1315
- stat = adm
1338
+ type = adm
1316
1339
  amount = 1
1317
1340
  }
1318
1341
 
missions/EMP_Venetian_Missions.txt CHANGED
@@ -40,8 +40,7 @@ emp_ven_slot_1 = {
40
40
  }
41
41
  }
42
42
  effect = {
43
- custom_tooltip = emp_ven_plague_doctor_training_tt
44
- set_country_flag = has_competent_doctors
43
+ remove_plague_events = yes
45
44
  }
46
45
  }
47
46
 
missions/English_Missions.txt CHANGED
@@ -707,7 +707,7 @@ eng_indian_ocean_exploration = {
707
707
  england_discovers_india = {
708
708
  icon = mission_junk_boat
709
709
  required_missions = { }
710
- position = 7
710
+ position = 6
711
711
  completed_by = 1579.1.1
712
712
 
713
713
  trigger = {
missions/GC_Portuguese_Missions.txt CHANGED
@@ -773,7 +773,13 @@ gc_por_2_c = {
773
773
  NOT = { owned_by = ROOT }
774
774
  }
775
775
  trigger = {
776
- has_flagship = yes
776
+ if = {
777
+ limit = { has_dlc = "Golden Century" }
778
+ has_flagship = yes
779
+ }
780
+ else = {
781
+ num_of_heavy_ship = 8
782
+ }
777
783
  227 = { owned_by = ROOT }
778
784
  }
779
785
  effect = {
@@ -1618,13 +1624,13 @@ gc_por_5_dom = {
1618
1624
  custom_tooltip = por_more_likely_to_get_expansionist_tt
1619
1625
  set_country_flag = por_more_likely_to_get_expansionist_flag
1620
1626
  change_ruler_stat = {
1621
- stat = dip
1627
+ type = dip
1622
1628
  amount = 1
1623
1629
  }
1624
1630
  }
1625
1631
  else = {
1626
1632
  change_ruler_stat = {
1627
- stat = dip
1633
+ type = dip
1628
1634
  amount = 2
1629
1635
  }
1630
1636
  add_prestige_or_monarch_power = { amount = 10 }
missions/Japanese_Missions.txt CHANGED
@@ -639,7 +639,7 @@ japanse_missions_the_empire = {
639
639
  if = {
640
640
  limit = {
641
641
  NOT = { is_core = ROOT }
642
- NOT = { is_claim = ROOT }
642
+ NOT = { is_permanent_claim = ROOT }
643
643
  }
644
644
  add_permanent_claim = ROOT
645
645
  }
@@ -910,7 +910,10 @@ japanse_missions_domestic = {
910
910
  limit = {
911
911
  is_revolutionary = no
912
912
  }
913
- absolutism = 50
913
+ OR = {
914
+ absolutism = 50
915
+ crown_land_share = 70
916
+ }
914
917
  }
915
918
  if = {
916
919
  limit = { has_dlc = "Mandate of Heaven" }
missions/KoK_Aq_Qoyunlu_Missions.txt ADDED
@@ -0,0 +1,2185 @@
1
+ aq_qoyunlu_first = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ tag = AKK
10
+ NOT = { map_setup = map_setup_random }
11
+ has_dlc = "King of Kings"
12
+ }
13
+ has_country_shield = yes
14
+
15
+ aq_qoyunlu_last_romans = {
16
+ icon = mission_pf_cross
17
+ required_missions = { }
18
+ position = 2
19
+
20
+ provinces_to_highlight = {
21
+ province_id = 330
22
+ NOT = {
23
+ is_core = ROOT
24
+ }
25
+ }
26
+
27
+ trigger = {
28
+ owns_core_province = 330
29
+ }
30
+
31
+ effect = {
32
+ country_event = { id = flavor_turkoman.8 }
33
+ custom_tooltip = turkoman_trebizond_insight_tt
34
+ rum_area = {
35
+ limit = {
36
+ NOT = { is_core = ROOT }
37
+ NOT = { is_permanent_claim = ROOT }
38
+ }
39
+ add_permanent_claim = ROOT
40
+ }
41
+ kastamonu_area = {
42
+ limit = {
43
+ NOT = { is_core = ROOT }
44
+ NOT = { is_permanent_claim = ROOT }
45
+ }
46
+ add_permanent_claim = ROOT
47
+ }
48
+ }
49
+ }
50
+
51
+ aq_qoyunlu_overpower_the_mamluks = {
52
+ icon = mission_break_the_mamluks
53
+ required_missions = { aq_qoyunlu_anatolian_turnabout }
54
+ position = 4
55
+
56
+ provinces_to_highlight = {
57
+ OR = {
58
+ area = syria_area
59
+ area = syrian_desert_area
60
+ area = aleppo_area
61
+ }
62
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
63
+ }
64
+
65
+ trigger = {
66
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
67
+ OR = {
68
+ area = syria_area
69
+ area = syrian_desert_area
70
+ area = aleppo_area
71
+ }
72
+ value = 7
73
+ }
74
+ }
75
+
76
+ effect = {
77
+ if = {
78
+ limit = {
79
+ NOT = {
80
+ army_tradition = 50
81
+ }
82
+ }
83
+ create_general = { tradition = 50 }
84
+ }
85
+ else_if = {
86
+ limit = {
87
+ NOT = {
88
+ army_tradition = 75
89
+ }
90
+ }
91
+ create_general = { tradition = 75 }
92
+ }
93
+ else = {
94
+ create_general = { tradition = 100 }
95
+ }
96
+ add_country_modifier = {
97
+ name = "turkoman_overpower_mamluks"
98
+ duration = 7300
99
+ }
100
+ palestine_area = {
101
+ limit = {
102
+ NOT = { is_core = ROOT }
103
+ NOT = { is_permanent_claim = ROOT }
104
+ }
105
+ add_permanent_claim = ROOT
106
+ }
107
+ trans_jordan_area = {
108
+ limit = {
109
+ NOT = { is_core = ROOT }
110
+ NOT = { is_permanent_claim = ROOT }
111
+ }
112
+ add_permanent_claim = ROOT
113
+ }
114
+ }
115
+ }
116
+
117
+ aq_qoyunlu_mounted_dread = {
118
+ icon = mission_abu_saids_dream
119
+ required_missions = { }
120
+ position = 5
121
+
122
+ trigger = {
123
+ num_of_cavalry = 12
124
+ OR = {
125
+ has_global_modifier_value = {
126
+ which = cavalry_power
127
+ value = 0.4
128
+ }
129
+ has_global_modifier_value = {
130
+ which = discipline
131
+ value = 0.1
132
+ }
133
+ }
134
+ }
135
+
136
+ effect = {
137
+ capital_scope = {
138
+ cavalry = ROOT
139
+ cavalry = ROOT
140
+ cavalry = ROOT
141
+ }
142
+ add_country_modifier = {
143
+ name = turkoman_army_traditions
144
+ duration = 9125
145
+ }
146
+ if = {
147
+ limit = {
148
+ army_tradition = 60
149
+ }
150
+ custom_tooltip = turkoman_enhance_army_traditions_tt_yes
151
+ }
152
+ else = {
153
+ custom_tooltip = turkoman_enhance_army_traditions_tt_no
154
+ }
155
+ hidden_effect = {
156
+ if = {
157
+ limit = {
158
+ army_tradition = 60
159
+ }
160
+ remove_country_modifier = turkoman_army_traditions
161
+ add_country_modifier = {
162
+ name = turkoman_army_traditions2
163
+ duration = 9125
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ aq_qoyunlu_maragheh_observatory = {
171
+ icon = qara_qoyunlu_maragheh_observatory
172
+ required_missions = { aq_qoyunlu_patronize_arts }
173
+ position = 9
174
+
175
+ provinces_to_highlight = {
176
+ province_id = 2207
177
+ }
178
+
179
+ trigger = {
180
+ owns = 2207
181
+ 2207 = {
182
+ development = 15
183
+ }
184
+ OR = {
185
+ innovativeness = 10
186
+ full_idea_group = innovativeness_ideas
187
+ monthly_dip = 12
188
+ }
189
+ }
190
+
191
+ effect = {
192
+ country_event = { id = flavor_turkoman.3 }
193
+ custom_tooltip = turkoman_maragheh_event_insight_tt
194
+ }
195
+ }
196
+
197
+ aq_qoyunlu_imperial_fabrics = {
198
+ icon = mission_gujarati_textiles
199
+ required_missions = { }
200
+ position = 10
201
+
202
+ provinces_to_highlight = {
203
+ owned_by = ROOT
204
+ OR = {
205
+ trade_goods = cloth
206
+ trade_goods = silk
207
+ }
208
+ OR = {
209
+ NOT = {
210
+ base_production = 5
211
+ }
212
+ NOT = {
213
+ has_production_building_trigger = yes
214
+ }
215
+ NOT = {
216
+ has_manufactory_trigger = yes
217
+ }
218
+ }
219
+ }
220
+
221
+
222
+ trigger = {
223
+ calc_true_if = {
224
+ all_owned_province = {
225
+ OR = {
226
+ trade_goods = cloth
227
+ trade_goods = silk
228
+ }
229
+ base_production = 5
230
+ }
231
+ amount = 5
232
+ }
233
+ calc_true_if = {
234
+ all_owned_province = {
235
+ OR = {
236
+ trade_goods = cloth
237
+ trade_goods = silk
238
+ }
239
+ has_production_building_trigger = yes
240
+ }
241
+ amount = 5
242
+ }
243
+ calc_true_if = {
244
+ all_owned_province = {
245
+ OR = {
246
+ trade_goods = cloth
247
+ trade_goods = silk
248
+ }
249
+ has_manufactory_trigger = yes
250
+ }
251
+ amount = 5
252
+ }
253
+ }
254
+
255
+ effect = {
256
+ add_country_modifier = {
257
+ name = "turkoman_expanding_industry"
258
+ duration = 3650
259
+ }
260
+ custom_tooltip = trk_chance_extra_dev_tt
261
+ if = {
262
+ limit = {
263
+ development_in_provinces = {
264
+ value = 100
265
+ trade_goods = wool
266
+ }
267
+ }
268
+ custom_tooltip = trk_convert_wool_provinces_tt_yes
269
+ }
270
+ else = {
271
+ custom_tooltip = trk_convert_wool_provinces_tt_no
272
+ }
273
+ hidden_effect = {
274
+ if = {
275
+ limit = {
276
+ development_in_provinces = {
277
+ value = 100
278
+ trade_goods = wool
279
+ }
280
+ }
281
+ random_owned_province = {
282
+ limit = {
283
+ trade_goods = wool
284
+ }
285
+ change_trade_goods = cloth
286
+ }
287
+ random_owned_province = {
288
+ limit = {
289
+ trade_goods = wool
290
+ }
291
+ change_trade_goods = cloth
292
+ }
293
+ random_owned_province = {
294
+ limit = {
295
+ trade_goods = wool
296
+ }
297
+ change_trade_goods = cloth
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+
304
+ }
305
+
306
+ aq_qoyunlu_second = {
307
+ slot = 2
308
+ generic = no
309
+ ai = yes
310
+ potential_on_load = {
311
+ has_dlc = "King of Kings"
312
+ }
313
+ potential = {
314
+ tag = AKK
315
+ NOT = { map_setup = map_setup_random }
316
+ has_dlc = "King of Kings"
317
+ }
318
+ has_country_shield = yes
319
+
320
+ aq_qoyunlu_tame_the_eagle = {
321
+ icon = mission_fatimid_caliphate
322
+ required_missions = { }
323
+ position = 1
324
+
325
+ provinces_to_highlight = {
326
+ province_id = 4295
327
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
328
+ }
329
+
330
+ trigger = {
331
+ 4295 = {
332
+ country_or_non_sovereign_subject_holds = ROOT
333
+ }
334
+ }
335
+
336
+ effect = {
337
+ add_dip_power = 50
338
+ add_country_modifier = {
339
+ name = turkoman_ended_the_ayyubids
340
+ duration = 3650
341
+ }
342
+ shahrizor_area = {
343
+ limit = {
344
+ NOT = { is_core = ROOT }
345
+ NOT = { is_permanent_claim = ROOT }
346
+ }
347
+ add_permanent_claim = ROOT
348
+ }
349
+ al_jazira_area = {
350
+ limit = {
351
+ NOT = { is_core = ROOT }
352
+ NOT = { is_permanent_claim = ROOT }
353
+ }
354
+ add_permanent_claim = ROOT
355
+ }
356
+ iraq_arabi_area = {
357
+ limit = {
358
+ NOT = { is_core = ROOT }
359
+ NOT = { is_permanent_claim = ROOT }
360
+ }
361
+ add_permanent_claim = ROOT
362
+ }
363
+ dulkadir_area = {
364
+ limit = {
365
+ NOT = { is_core = ROOT }
366
+ NOT = { is_permanent_claim = ROOT }
367
+ }
368
+ add_permanent_claim = ROOT
369
+ }
370
+ cukurova_area = {
371
+ limit = {
372
+ NOT = { is_core = ROOT }
373
+ NOT = { is_permanent_claim = ROOT }
374
+ }
375
+ add_permanent_claim = ROOT
376
+ }
377
+ ankara_area = {
378
+ limit = {
379
+ NOT = { is_core = ROOT }
380
+ NOT = { is_permanent_claim = ROOT }
381
+ }
382
+ add_permanent_claim = ROOT
383
+ }
384
+ karaman_area = {
385
+ limit = {
386
+ NOT = { is_core = ROOT }
387
+ NOT = { is_permanent_claim = ROOT }
388
+ }
389
+ add_permanent_claim = ROOT
390
+ }
391
+ }
392
+ }
393
+
394
+ aq_qoyunlu_anatolian_turnabout = {
395
+ icon = mission_ottoman_diplomacy
396
+ required_missions = { aq_qoyunlu_tame_the_eagle aq_qoyunlu_last_romans }
397
+ position = 3
398
+
399
+ provinces_to_highlight = {
400
+ OR = {
401
+ area = dulkadir_area
402
+ area = cukurova_area
403
+ area = rum_area
404
+ area = kastamonu_area
405
+ area = ankara_area
406
+ area = karaman_area
407
+ }
408
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
409
+ }
410
+
411
+ trigger = {
412
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
413
+ OR = {
414
+ area = dulkadir_area
415
+ area = cukurova_area
416
+ area = rum_area
417
+ area = kastamonu_area
418
+ area = ankara_area
419
+ area = karaman_area
420
+ }
421
+ value = 15
422
+ }
423
+ }
424
+
425
+ effect = {
426
+ if = {
427
+ limit = {
428
+ primary_culture = turkish
429
+ }
430
+ add_dip_power = 100
431
+ }
432
+ else = { add_accepted_culture = turkish }
433
+ add_country_modifier = {
434
+ name = "turkmen_turkic_union"
435
+ duration = -1
436
+ desc = turkmen_turkic_union_tt
437
+ }
438
+ aleppo_area = {
439
+ limit = {
440
+ NOT = { is_core = ROOT }
441
+ NOT = { is_permanent_claim = ROOT }
442
+ }
443
+ add_permanent_claim = ROOT
444
+ }
445
+ syria_area = {
446
+ limit = {
447
+ NOT = { is_core = ROOT }
448
+ NOT = { is_permanent_claim = ROOT }
449
+ }
450
+ add_permanent_claim = ROOT
451
+ }
452
+ syrian_desert_area = {
453
+ limit = {
454
+ NOT = { is_core = ROOT }
455
+ NOT = { is_permanent_claim = ROOT }
456
+ }
457
+ add_permanent_claim = ROOT
458
+ }
459
+ anatolia_region = {
460
+ limit = {
461
+ NOT = { is_core = ROOT }
462
+ NOT = { is_permanent_claim = ROOT }
463
+ }
464
+ add_permanent_claim = ROOT
465
+ }
466
+ if = {
467
+ limit = {
468
+ NOT = {
469
+ has_country_flag = turkoman_hasnt_lost_battle_to_ottomans
470
+ }
471
+ }
472
+ custom_tooltip = turkoman_battle_ottomans_tt_yes
473
+ tooltip = {
474
+ add_permanent_power_projection = {
475
+ type = 10_permanent_power_projection
476
+ amount = 10
477
+ }
478
+ }
479
+ }
480
+ else = {
481
+ custom_tooltip = turkoman_battle_ottomans_tt_no
482
+ tooltip = {
483
+ add_permanent_power_projection = {
484
+ type = 10_permanent_power_projection
485
+ amount = 10
486
+ }
487
+ }
488
+ }
489
+ hidden_effect = {
490
+ if = {
491
+ limit = {
492
+ NOT = {
493
+ has_country_flag = turkoman_hasnt_lost_battle_to_ottomans
494
+ }
495
+ }
496
+ add_permanent_power_projection = {
497
+ type = 10_permanent_power_projection
498
+ amount = 10
499
+ }
500
+ }
501
+ }
502
+ }
503
+ }
504
+
505
+ aq_qoyunlu_reform_the_army = {
506
+ icon = mission_ottoman_early_army
507
+ required_missions = { aq_qoyunlu_anatolian_turnabout aq_qoyunlu_mounted_dread }
508
+ position = 6
509
+
510
+ provinces_to_highlight = {
511
+ }
512
+
513
+ trigger = {
514
+ OR = {
515
+ accepted_culture = turkish
516
+ primary_culture = turco_iranian
517
+ }
518
+ development_in_provinces = {
519
+ value = 150
520
+ OR = {
521
+ culture = turkish
522
+ culture = turco_iranian
523
+ }
524
+ }
525
+ NOT = { average_autonomy_above_min = 10 }
526
+ }
527
+
528
+ effect = {
529
+ custom_tooltip = turkoman_spawn_janissary_tt
530
+ add_country_modifier = {
531
+ name = "turkoman_state_modernization"
532
+ duration = 7300
533
+ }
534
+ set_country_flag = turkoman_unlock_ottoman_reform
535
+ add_government_reform = turkoman_ottoman_institutions
536
+ hidden_effect = {
537
+ capital_scope = {
538
+ janissary_infantry = ROOT
539
+ janissary_infantry = ROOT
540
+ janissary_infantry = ROOT
541
+ janissary_infantry = ROOT
542
+ janissary_infantry = ROOT
543
+ janissary_infantry = ROOT
544
+ janissary_infantry = ROOT
545
+ janissary_infantry = ROOT
546
+ janissary_infantry = ROOT
547
+ janissary_infantry = ROOT
548
+ }
549
+ }
550
+ }
551
+ }
552
+
553
+ aq_qoyunlu_a_gunpowder_empire = {
554
+ icon = mission_guns_of_urban
555
+ required_missions = { aq_qoyunlu_reform_the_army }
556
+ position = 7
557
+
558
+ trigger = {
559
+ if = {
560
+ limit = {
561
+ has_dlc = "Cradle of Civilization"
562
+ }
563
+ army_professionalism = 0.4
564
+ }
565
+ else = {
566
+ army_tradition = 60
567
+ }
568
+ num_of_artillery = 20
569
+ OR = {
570
+ has_global_modifier_value = {
571
+ which = artillery_power
572
+ value = 0.1
573
+ }
574
+ has_global_modifier_value = {
575
+ which = discipline
576
+ value = 0.15
577
+ }
578
+ }
579
+ }
580
+
581
+ effect = {
582
+ if = {
583
+ limit = {
584
+ has_dlc = "Cradle of Civilization"
585
+ }
586
+ add_army_professionalism = 0.1
587
+ }
588
+ else = {
589
+ add_army_tradition = 20
590
+ }
591
+ add_country_modifier = {
592
+ name = turkoman_gunpowder
593
+ duration = 7300
594
+ }
595
+ define_advisor = {
596
+ type = commandant
597
+ skill = 3
598
+ culture = ROOT
599
+ religion = ROOT
600
+ cost_multiplier = 0.25
601
+ }
602
+ }
603
+ }
604
+
605
+ aq_qoyunlu_patronize_arts = {
606
+ icon = mission_book_of_royal_degrees
607
+ required_missions = { }
608
+ position = 8
609
+
610
+ provinces_to_highlight = {
611
+ is_capital_of = ROOT
612
+ NOT = {
613
+ renaissance = 100
614
+ }
615
+ }
616
+
617
+ trigger = {
618
+ prestige = 40
619
+ capital_scope = {
620
+ renaissance = 100
621
+ }
622
+ OR = {
623
+ has_adm_advisor_2 = yes
624
+ has_dip_advisor_2 = yes
625
+ has_mil_advisor_2 = yes
626
+ }
627
+ }
628
+
629
+ effect = {
630
+ add_country_modifier = {
631
+ name = turkoman_schools_of_thought
632
+ duration = 7300
633
+ }
634
+ define_advisor = {
635
+ type = philosopher
636
+ skill = 2
637
+ culture = ROOT
638
+ religion = ROOT
639
+ cost_multiplier = 0.25
640
+ }
641
+ }
642
+ }
643
+
644
+ aq_qoyunlu_blue_mosque = {
645
+ icon = mission_central_asian_city
646
+ required_missions = { aq_qoyunlu_patronize_arts }
647
+ position = 10
648
+
649
+ provinces_to_highlight = {
650
+ province_id = 416
651
+ }
652
+
653
+ trigger = {
654
+ owns = 416
655
+ 416 = {
656
+ base_tax = 10
657
+ }
658
+ 416 = {
659
+ has_tax_building_trigger = yes
660
+ }
661
+ }
662
+
663
+ effect = {
664
+ if = {
665
+ limit = {
666
+ 416 = {
667
+ has_building = cathedral
668
+ NOT = {
669
+ has_building = temple
670
+ }
671
+ }
672
+ }
673
+ 416 = {
674
+ add_base_tax = 2
675
+ }
676
+ }
677
+ else_if = {
678
+ limit = {
679
+ 416 = {
680
+ has_building = temple
681
+ NOT = {
682
+ has_building = cathedral
683
+ }
684
+ }
685
+ }
686
+ custom_tooltip = turkoman_tabriz_upgrade_temple_tt
687
+ hidden_effect = {
688
+ 416 = {
689
+ remove_building = temple
690
+ add_building = cathedral
691
+ }
692
+ }
693
+ }
694
+ else = {
695
+ custom_tooltip = turkoman_tabriz_upgrade_temple_tt
696
+ }
697
+ 416 = {
698
+ add_province_modifier = {
699
+ name = turkoman_renovate_tabriz
700
+ duration = 7300
701
+ }
702
+ }
703
+ custom_tooltip = turkoman_blue_mosque_tt
704
+ set_country_flag = mosque_local_unrest_flag
705
+ }
706
+ }
707
+
708
+ aq_qoyunlu_pearl_of_the_empire = {
709
+ icon = mission_metropolis_of_the_deccan
710
+ required_missions = { aq_qoyunlu_blue_mosque aq_qoyunlu_imperial_fabrics }
711
+ position = 11
712
+
713
+ provinces_to_highlight = {
714
+ province_id = 416
715
+ }
716
+
717
+ trigger = {
718
+ owns = 416
719
+ 416 = {
720
+ development = 40
721
+ }
722
+ 416 = {
723
+ num_of_buildings_in_province = 5
724
+ }
725
+ }
726
+
727
+ effect = {
728
+ 416 = {
729
+ add_base_tax = 1
730
+ add_base_production = 1
731
+ add_base_manpower = 1
732
+ }
733
+ 416 = {
734
+ add_province_modifier = {
735
+ name = turkoman_pearl_of_the_empire
736
+ duration = -1
737
+ }
738
+ }
739
+ if = {
740
+ limit = {
741
+ 416 = {
742
+ NOT = {
743
+ any_province = {
744
+ religion_group = muslim
745
+ higher_development_than = PREV
746
+ }
747
+ }
748
+ }
749
+ }
750
+ custom_tooltip = turkoman_tabriz_dev_tt_yes
751
+ tooltip = {
752
+ if = {
753
+ limit = {
754
+ has_dlc = "Mandate of Heaven"
755
+ }
756
+ add_splendor = 300
757
+ }
758
+ else = {
759
+ add_dip_power = 200
760
+ }
761
+ }
762
+ }
763
+ else = {
764
+ custom_tooltip = turkoman_tabriz_dev_tt_no
765
+ tooltip = {
766
+ if = {
767
+ limit = {
768
+ has_dlc = "Mandate of Heaven"
769
+ }
770
+ add_splendor = 300
771
+ }
772
+ else = {
773
+ add_dip_power = 200
774
+ }
775
+ }
776
+ }
777
+ hidden_effect = {
778
+ if = {
779
+ limit = {
780
+ 416 = {
781
+ NOT = {
782
+ any_province = {
783
+ religion_group = muslim
784
+ higher_development_than = PREV
785
+ }
786
+ }
787
+ }
788
+ }
789
+ if = {
790
+ limit = {
791
+ has_dlc = "Mandate of Heaven"
792
+ }
793
+ add_splendor = 300
794
+ }
795
+ else = {
796
+ add_dip_power = 200
797
+ }
798
+ }
799
+ }
800
+ }
801
+ }
802
+
803
+ }
804
+
805
+ aq_qoyunlu_third = {
806
+ slot = 3
807
+ generic = no
808
+ ai = yes
809
+ potential_on_load = {
810
+ has_dlc = "King of Kings"
811
+ }
812
+ potential = {
813
+ tag = AKK
814
+ NOT = { map_setup = map_setup_random }
815
+ has_dlc = "King of Kings"
816
+ }
817
+ has_country_shield = yes
818
+
819
+ aq_qoyunlu_dismantle_qara_qoyunlu = {
820
+ icon = qara_qoyunlu_dismantle_ak_qoyunlu
821
+ required_missions = { aq_qoyunlu_rally_the_turkmen aq_qoyunlu_tame_the_eagle }
822
+ position = 2
823
+
824
+ provinces_to_highlight = {
825
+ OR = {
826
+ area = al_jazira_area
827
+ area = shahrizor_area
828
+ area = tabriz_area
829
+ }
830
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
831
+ }
832
+
833
+ trigger = {
834
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
835
+ OR = {
836
+ area = al_jazira_area
837
+ area = shahrizor_area
838
+ area = tabriz_area
839
+ }
840
+ value = 8
841
+ }
842
+ }
843
+
844
+ effect = {
845
+ add_mil_power = 100
846
+ add_country_modifier = {
847
+ name = "turkmen_new_turkoman_power"
848
+ duration = 7300
849
+ }
850
+ iraq_arabi_area = {
851
+ limit = {
852
+ NOT = { is_core = ROOT }
853
+ NOT = { is_permanent_claim = ROOT }
854
+ }
855
+ add_permanent_claim = ROOT
856
+ }
857
+ luristan_area = {
858
+ limit = {
859
+ NOT = { is_core = ROOT }
860
+ NOT = { is_permanent_claim = ROOT }
861
+ }
862
+ add_permanent_claim = ROOT
863
+ }
864
+ azerbaijan_area = {
865
+ limit = {
866
+ NOT = { is_core = ROOT }
867
+ NOT = { is_permanent_claim = ROOT }
868
+ }
869
+ add_permanent_claim = ROOT
870
+ }
871
+ tabarestan_area = {
872
+ limit = {
873
+ NOT = { is_core = ROOT }
874
+ NOT = { is_permanent_claim = ROOT }
875
+ }
876
+ add_permanent_claim = ROOT
877
+ }
878
+ iraq_e_ajam_area = {
879
+ limit = {
880
+ NOT = { is_core = ROOT }
881
+ NOT = { is_permanent_claim = ROOT }
882
+ }
883
+ add_permanent_claim = ROOT
884
+ }
885
+ }
886
+ }
887
+
888
+ aq_qoyunlu_heart_of_iran = {
889
+ icon = mission_unite_home_region
890
+ required_missions = { aq_qoyunlu_dismantle_qara_qoyunlu }
891
+ position = 4
892
+
893
+ provinces_to_highlight = {
894
+ OR = {
895
+ area = tabarestan_area
896
+ area = azerbaijan_area
897
+ area = iraq_e_ajam_area
898
+ area = shahrizor_area
899
+ area = luristan_area
900
+ }
901
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
902
+ }
903
+
904
+ trigger = {
905
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
906
+ OR = {
907
+ area = tabarestan_area
908
+ area = azerbaijan_area
909
+ area = iraq_e_ajam_area
910
+ area = shahrizor_area
911
+ area = luristan_area
912
+ }
913
+ value = 8
914
+ }
915
+ }
916
+
917
+ effect = {
918
+ add_adm_power = 100
919
+ add_country_modifier = {
920
+ name = "turkoman_triumphant_conquest"
921
+ duration = 5475
922
+ }
923
+ custom_tooltip = turkoman_timurid_morale_tt
924
+ birjand_area = {
925
+ limit = {
926
+ NOT = { is_core = ROOT }
927
+ NOT = { is_permanent_claim = ROOT }
928
+ }
929
+ add_permanent_claim = ROOT
930
+ }
931
+ mashhad_area = {
932
+ limit = {
933
+ NOT = { is_core = ROOT }
934
+ NOT = { is_permanent_claim = ROOT }
935
+ }
936
+ add_permanent_claim = ROOT
937
+ }
938
+ herat_area = {
939
+ limit = {
940
+ NOT = { is_core = ROOT }
941
+ NOT = { is_permanent_claim = ROOT }
942
+ }
943
+ add_permanent_claim = ROOT
944
+ }
945
+ persia_region = {
946
+ limit = {
947
+ NOT = { is_core = ROOT }
948
+ NOT = { is_permanent_claim = ROOT }
949
+ }
950
+ add_permanent_claim = ROOT
951
+ }
952
+ if = {
953
+ limit = {
954
+ any_country = {
955
+ is_subject_of = TIM
956
+ ROOT = {
957
+ is_supporting_independence_of = PREV
958
+ }
959
+ }
960
+ }
961
+ custom_tooltip = turkoman_support_indep_tt_yes
962
+ tooltip = {
963
+ add_country_modifier = {
964
+ name = "turkoman_plotting_timurid_donwfall"
965
+ duration = 7300
966
+ }
967
+ }
968
+ }
969
+ else = {
970
+ custom_tooltip = turkoman_support_indep_tt_no
971
+ tooltip = {
972
+ add_country_modifier = {
973
+ name = "turkoman_plotting_timurid_donwfall"
974
+ duration = 7300
975
+ }
976
+ }
977
+ }
978
+ hidden_effect = {
979
+ if = {
980
+ limit = {
981
+ any_country = {
982
+ is_subject_of = TIM
983
+ ROOT = {
984
+ is_supporting_independence_of = PREV
985
+ }
986
+ }
987
+ }
988
+ add_country_modifier = {
989
+ name = "turkoman_plotting_timurid_donwfall"
990
+ duration = 7300
991
+ }
992
+ }
993
+ }
994
+ }
995
+ }
996
+
997
+ aq_qoyunlu_dethrone_the_timurids = {
998
+ icon = aq_qoyunlu_dethrone_the_timurids
999
+ required_missions = { aq_qoyunlu_heart_of_iran }
1000
+ position = 6
1001
+
1002
+ provinces_to_highlight = {
1003
+ OR = {
1004
+ area = tabarestan_area
1005
+ area = azerbaijan_area
1006
+ area = iraq_e_ajam_area
1007
+ area = shahrizor_area
1008
+ area = luristan_area
1009
+ province_id = 446
1010
+ }
1011
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1012
+ }
1013
+
1014
+ trigger = {
1015
+ 446 = {
1016
+ country_or_non_sovereign_subject_holds = ROOT
1017
+ }
1018
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1019
+ OR = {
1020
+ area = tabarestan_area
1021
+ area = azerbaijan_area
1022
+ area = iraq_e_ajam_area
1023
+ area = shahrizor_area
1024
+ area = luristan_area
1025
+ }
1026
+ value = 12
1027
+ }
1028
+ }
1029
+
1030
+ effect = {
1031
+ add_prestige_or_monarch_power = { amount = 25 }
1032
+ add_country_modifier = {
1033
+ name = "turkoman_bane_timurids"
1034
+ duration = -1
1035
+ }
1036
+ khorasan_region = {
1037
+ limit = {
1038
+ NOT = { is_core = ROOT }
1039
+ NOT = { is_permanent_claim = ROOT }
1040
+ }
1041
+ add_permanent_claim = ROOT
1042
+ }
1043
+ if = {
1044
+ limit = {
1045
+ NOT = {
1046
+ any_country = {
1047
+ dynasty = "Timurid"
1048
+ }
1049
+ }
1050
+ }
1051
+ custom_tooltip = turkoman_no_timurids_tt_yes
1052
+ tooltip = {
1053
+ add_power_projection = {
1054
+ type = mission_rewards_power_projection
1055
+ amount = 25
1056
+ }
1057
+ add_ruler_modifier = {
1058
+ name = "turkoman_tamerlane_bloodline"
1059
+ duration = -1
1060
+ }
1061
+ }
1062
+ }
1063
+ else = {
1064
+ custom_tooltip = turkoman_no_timurids_tt_no
1065
+ tooltip = {
1066
+ add_power_projection = {
1067
+ type = mission_rewards_power_projection
1068
+ amount = 25
1069
+ }
1070
+ add_ruler_modifier = {
1071
+ name = "turkoman_tamerlane_bloodline"
1072
+ duration = -1
1073
+ }
1074
+ }
1075
+ }
1076
+ hidden_effect = {
1077
+ if = {
1078
+ limit = {
1079
+ NOT = {
1080
+ any_country = {
1081
+ dynasty = "Timurid"
1082
+ }
1083
+ }
1084
+ }
1085
+ add_power_projection = {
1086
+ type = mission_rewards_power_projection
1087
+ amount = 25
1088
+ }
1089
+ add_ruler_modifier = {
1090
+ name = "turkoman_tamerlane_bloodline"
1091
+ duration = -1
1092
+ }
1093
+ }
1094
+ }
1095
+ }
1096
+ }
1097
+
1098
+ aq_qoyunlu_splendid_court = {
1099
+ icon = mission_gharbianss
1100
+ required_missions = { aq_qoyunlu_patronize_arts }
1101
+ position = 9
1102
+
1103
+ provinces_to_highlight = {
1104
+ owned_by = ROOT
1105
+ NOT = {
1106
+ OR = {
1107
+ has_building = courthouse
1108
+ has_building = town_hall
1109
+ }
1110
+ }
1111
+ }
1112
+
1113
+ trigger = {
1114
+ has_adm_advisor_3 = yes
1115
+ has_dip_advisor_3 = yes
1116
+ has_mil_advisor_3 = yes
1117
+ calc_true_if = {
1118
+ all_owned_province = {
1119
+ OR = {
1120
+ has_building = courthouse
1121
+ has_building = town_hall
1122
+ }
1123
+ }
1124
+ amount = 5
1125
+ }
1126
+ }
1127
+
1128
+ effect = {
1129
+ if = {
1130
+ limit = {
1131
+ has_dlc = "Rights of Man"
1132
+ }
1133
+ custom_tooltip = turkoman_well_connected_chace_tt
1134
+ set_country_flag = turkoman_triple_trait_chance
1135
+ }
1136
+ add_country_modifier = {
1137
+ name = turkoman_splendid_court
1138
+ duration = 7300
1139
+ }
1140
+ }
1141
+ }
1142
+
1143
+ aq_qoyunlu_kitab = {
1144
+ icon = mission_court_education
1145
+ required_missions = { aq_qoyunlu_splendid_court }
1146
+ position = 11
1147
+
1148
+ trigger = {
1149
+ prestige = 60
1150
+ OR = {
1151
+ DIP = 5
1152
+ monthly_dip = 10
1153
+ if = {
1154
+ limit = {
1155
+ has_dlc = "Rights of Man"
1156
+ }
1157
+ ruler_has_personality = well_connected_personality
1158
+ }
1159
+ }
1160
+ }
1161
+
1162
+ effect = {
1163
+ if = {
1164
+ limit = {
1165
+ has_dlc = "Rule Britannia"
1166
+ }
1167
+ change_innovativeness = 5
1168
+ }
1169
+ else = {
1170
+ add_dip_power = 100
1171
+ }
1172
+ country_event = { id = flavor_turkoman.4 }
1173
+ custom_tooltip = turkoman_tihrani_insight_tt
1174
+ }
1175
+ }
1176
+
1177
+ }
1178
+
1179
+ aq_qoyunlu_fourth = {
1180
+ slot = 4
1181
+ generic = no
1182
+ ai = yes
1183
+ potential_on_load = {
1184
+ has_dlc = "King of Kings"
1185
+ }
1186
+ potential = {
1187
+ tag = AKK
1188
+ NOT = { map_setup = map_setup_random }
1189
+ has_dlc = "King of Kings"
1190
+ }
1191
+ has_country_shield = yes
1192
+
1193
+ aq_qoyunlu_rally_the_turkmen = {
1194
+ icon = mission_persian_soldiers
1195
+ required_missions = { }
1196
+ position = 1
1197
+
1198
+ trigger = {
1199
+ num_of_generals = 1
1200
+ OR = {
1201
+ army_size_percentage = 0.9
1202
+ army_size = 10
1203
+ manpower_percentage = 0.75
1204
+ }
1205
+ }
1206
+
1207
+ effect = {
1208
+ if = {
1209
+ limit = {
1210
+ has_dlc = "Cradle of Civilization"
1211
+ }
1212
+ add_government_power = {
1213
+ mechanic_type = tribal_federation_mechanic
1214
+ power_type = tribal_allegiance
1215
+ value = 30
1216
+ }
1217
+ }
1218
+ else = {
1219
+ add_prestige_or_monarch_power = { amount = 10 }
1220
+ }
1221
+ add_country_modifier = {
1222
+ name = "turkoman_advance"
1223
+ duration = 7300
1224
+ }
1225
+ erzurum_area = {
1226
+ limit = {
1227
+ NOT = { is_core = ROOT }
1228
+ NOT = { is_permanent_claim = ROOT }
1229
+ }
1230
+ add_permanent_claim = ROOT
1231
+ }
1232
+ north_kurdistan_area = {
1233
+ limit = {
1234
+ NOT = { is_core = ROOT }
1235
+ NOT = { is_permanent_claim = ROOT }
1236
+ }
1237
+ add_permanent_claim = ROOT
1238
+ }
1239
+ armenia_area = {
1240
+ limit = {
1241
+ NOT = { is_core = ROOT }
1242
+ NOT = { is_permanent_claim = ROOT }
1243
+ }
1244
+ add_permanent_claim = ROOT
1245
+ }
1246
+ tabriz_area = {
1247
+ limit = {
1248
+ NOT = { is_core = ROOT }
1249
+ NOT = { is_permanent_claim = ROOT }
1250
+ }
1251
+ add_permanent_claim = ROOT
1252
+ }
1253
+ kartli_kakheti_area = {
1254
+ limit = {
1255
+ NOT = { is_core = ROOT }
1256
+ NOT = { is_permanent_claim = ROOT }
1257
+ }
1258
+ add_permanent_claim = ROOT
1259
+ }
1260
+ imereti_area = {
1261
+ limit = {
1262
+ NOT = { is_core = ROOT }
1263
+ NOT = { is_permanent_claim = ROOT }
1264
+ }
1265
+ add_permanent_claim = ROOT
1266
+ }
1267
+ samtskhe_area = {
1268
+ limit = {
1269
+ NOT = { is_core = ROOT }
1270
+ NOT = { is_permanent_claim = ROOT }
1271
+ }
1272
+ add_permanent_claim = ROOT
1273
+ }
1274
+ }
1275
+ }
1276
+
1277
+ aq_qoyunlu_secure_basra = {
1278
+ icon = mission_restore_caliphate_of_cordoba
1279
+ required_missions = { aq_qoyunlu_custodian_of_baghdad }
1280
+ position = 4
1281
+
1282
+ provinces_to_highlight = {
1283
+ OR = {
1284
+ area = basra_area
1285
+ area = khuzestan_area
1286
+ }
1287
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1288
+ }
1289
+
1290
+ trigger = {
1291
+ basra_area = {
1292
+ type = all
1293
+ country_or_non_sovereign_subject_holds = ROOT
1294
+ }
1295
+ khuzestan_area = {
1296
+ type = all
1297
+ country_or_non_sovereign_subject_holds = ROOT
1298
+ }
1299
+ }
1300
+
1301
+ effect = {
1302
+ 408 = {
1303
+ add_base_production = 3
1304
+ }
1305
+ 408 = {
1306
+ add_province_modifier = {
1307
+ name = turkoman_entrepot_of_persia
1308
+ duration = -1
1309
+ }
1310
+ }
1311
+ bahrain_area = {
1312
+ limit = {
1313
+ NOT = { is_core = ROOT }
1314
+ NOT = { is_permanent_claim = ROOT }
1315
+ }
1316
+ add_permanent_claim = ROOT
1317
+ }
1318
+ persian_gulf_coast = {
1319
+ limit = {
1320
+ NOT = { is_core = ROOT }
1321
+ NOT = { is_permanent_claim = ROOT }
1322
+ }
1323
+ add_permanent_claim = ROOT
1324
+ }
1325
+ farsistan_area = {
1326
+ limit = {
1327
+ NOT = { is_core = ROOT }
1328
+ NOT = { is_permanent_claim = ROOT }
1329
+ }
1330
+ add_permanent_claim = ROOT
1331
+ }
1332
+ }
1333
+ }
1334
+
1335
+ aq_qoyunlu_dominate_the_gulf = {
1336
+ icon = qara_qoyunlu_dominate_the_gulf
1337
+ required_missions = { aq_qoyunlu_secure_basra }
1338
+ position = 5
1339
+
1340
+ provinces_to_highlight = {
1341
+ OR = {
1342
+ area = persian_gulf_coast
1343
+ area = bahrain_area
1344
+ province_id = 408
1345
+ }
1346
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1347
+ }
1348
+
1349
+ trigger = {
1350
+ owns = 408
1351
+ 408 = { #Basra
1352
+ trade_share = {
1353
+ country = ROOT
1354
+ share = 50
1355
+ }
1356
+ }
1357
+ persian_gulf_coast = {
1358
+ type = all
1359
+ country_or_non_sovereign_subject_holds = ROOT
1360
+ }
1361
+ bahrain_area = {
1362
+ type = all
1363
+ country_or_non_sovereign_subject_holds = ROOT
1364
+ }
1365
+ }
1366
+
1367
+ effect = {
1368
+ add_sailors = 1000
1369
+ add_country_modifier = {
1370
+ name = turkoman_gulf_fleet
1371
+ duration = 3650
1372
+ }
1373
+ 408 = {
1374
+ add_unit_construction = {
1375
+ type = light_ship
1376
+ amount = 5
1377
+ speed = 0.25
1378
+ cost = 0
1379
+ }
1380
+ }
1381
+ custom_tooltip = turkoman_empty
1382
+ pirate_coast_area = {
1383
+ limit = {
1384
+ NOT = { is_core = ROOT }
1385
+ NOT = { is_permanent_claim = ROOT }
1386
+ }
1387
+ add_permanent_claim = ROOT
1388
+ }
1389
+ mogostan_area = {
1390
+ limit = {
1391
+ NOT = { is_core = ROOT }
1392
+ NOT = { is_permanent_claim = ROOT }
1393
+ }
1394
+ add_permanent_claim = ROOT
1395
+ }
1396
+ oman_area = {
1397
+ limit = {
1398
+ NOT = { is_core = ROOT }
1399
+ NOT = { is_permanent_claim = ROOT }
1400
+ }
1401
+ add_permanent_claim = ROOT
1402
+ }
1403
+ mascat_area = {
1404
+ limit = {
1405
+ NOT = { is_core = ROOT }
1406
+ NOT = { is_permanent_claim = ROOT }
1407
+ }
1408
+ add_permanent_claim = ROOT
1409
+ }
1410
+ }
1411
+ }
1412
+
1413
+ aq_qoyunlu_merchant_fleet = {
1414
+ icon = mission_arabian_sea_trade
1415
+ required_missions = { aq_qoyunlu_dominate_the_gulf }
1416
+ position = 6
1417
+
1418
+ trigger = {
1419
+ navy_size_percentage = 0.8
1420
+ num_of_light_ship = 10
1421
+ }
1422
+
1423
+ effect = {
1424
+ add_navy_tradition = 10
1425
+ add_country_modifier = {
1426
+ name = "turkoman_naval_routes"
1427
+ duration = 9125
1428
+ }
1429
+ define_advisor = {
1430
+ type = trader
1431
+ skill = 3
1432
+ culture = ROOT
1433
+ religion = ROOT
1434
+ cost_multiplier = 0.25
1435
+ }
1436
+ if = {
1437
+ limit = {
1438
+ NOT = {
1439
+ any_known_country = {
1440
+ any_owned_province = {
1441
+ has_port = yes
1442
+ sea_zone = {
1443
+ area = persian_gulf_area
1444
+ }
1445
+ }
1446
+ navy_size = root
1447
+ }
1448
+ }
1449
+ }
1450
+ custom_tooltip = turkoman_persian_gulf_navy_tt_yes
1451
+ tooltip = {
1452
+ add_country_modifier = {
1453
+ name = "turkoman_naval_hegemony"
1454
+ duration = 5475
1455
+ }
1456
+ }
1457
+ }
1458
+ else = {
1459
+ custom_tooltip = turkoman_persian_gulf_navy_tt_no
1460
+ tooltip = {
1461
+ add_country_modifier = {
1462
+ name = "turkoman_naval_hegemony"
1463
+ duration = 5475
1464
+ }
1465
+ }
1466
+ }
1467
+ }
1468
+ }
1469
+
1470
+ aq_qoyunlu_legacy_of_seljuk = {
1471
+ icon = per_the_seljuk_successors
1472
+ required_missions = { aq_qoyunlu_dethrone_the_timurids }
1473
+ position = 7
1474
+
1475
+ provinces_to_highlight = {
1476
+ OR = {
1477
+ region = persia_region
1478
+ region = khorasan_region
1479
+ }
1480
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1481
+ }
1482
+
1483
+ trigger = {
1484
+ persia_region = {
1485
+ type = all
1486
+ country_or_non_sovereign_subject_holds = ROOT
1487
+ }
1488
+ khorasan_region = {
1489
+ type = all
1490
+ country_or_non_sovereign_subject_holds = ROOT
1491
+ }
1492
+ }
1493
+
1494
+ effect = {
1495
+ country_event = { id = flavor_turkoman.1 }
1496
+ custom_tooltip = turkoman_legacy_of_seljuk_insight
1497
+ change_ruler_stat = {
1498
+ type = adm
1499
+ amount = 2
1500
+ }
1501
+ custom_tooltip = turkoman_empty
1502
+ transcaspia_area = {
1503
+ limit = {
1504
+ NOT = { is_core = ROOT }
1505
+ NOT = { is_permanent_claim = ROOT }
1506
+ }
1507
+ add_permanent_claim = ROOT
1508
+ }
1509
+ transoxiana_area = {
1510
+ limit = {
1511
+ NOT = { is_core = ROOT }
1512
+ NOT = { is_permanent_claim = ROOT }
1513
+ }
1514
+ add_permanent_claim = ROOT
1515
+ }
1516
+ kyzylkum_area = {
1517
+ limit = {
1518
+ NOT = { is_core = ROOT }
1519
+ NOT = { is_permanent_claim = ROOT }
1520
+ }
1521
+ add_permanent_claim = ROOT
1522
+ }
1523
+ termez_area = {
1524
+ limit = {
1525
+ NOT = { is_core = ROOT }
1526
+ NOT = { is_permanent_claim = ROOT }
1527
+ }
1528
+ add_permanent_claim = ROOT
1529
+ }
1530
+ khiva_area = {
1531
+ limit = {
1532
+ NOT = { is_core = ROOT }
1533
+ NOT = { is_permanent_claim = ROOT }
1534
+ }
1535
+ add_permanent_claim = ROOT
1536
+ }
1537
+ }
1538
+ }
1539
+
1540
+ aq_qoyunlu_architecture = {
1541
+ icon = mission_gawans_madrasar
1542
+ required_missions = { aq_qoyunlu_legacy_of_seljuk }
1543
+ position = 6
1544
+
1545
+ provinces_to_highlight = {
1546
+ owned_by = ROOT
1547
+ culture_group = iranian
1548
+ OR = {
1549
+ NOT = {
1550
+ has_tax_building_trigger = yes
1551
+ }
1552
+ NOT = {
1553
+ has_production_building_trigger = yes
1554
+ }
1555
+ NOT = {
1556
+ has_trade_building_trigger = yes
1557
+ }
1558
+ }
1559
+ }
1560
+
1561
+ trigger = {
1562
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1563
+ culture_group = iranian
1564
+ has_tax_building_trigger = yes
1565
+ value = 20
1566
+ }
1567
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1568
+ culture_group = iranian
1569
+ has_production_building_trigger = yes
1570
+ value = 20
1571
+ }
1572
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1573
+ culture_group = iranian
1574
+ has_trade_building_trigger = yes
1575
+ value = 20
1576
+ }
1577
+ }
1578
+
1579
+ effect = {
1580
+ if = {
1581
+ limit = {
1582
+ has_estate = estate_burghers
1583
+ NOT = { has_unlocked_estate_privilege = { estate_privilege = estate_burghers_great_works_of_iran } }
1584
+ }
1585
+ unlock_estate_privilege = {
1586
+ estate_privilege = estate_burghers_great_works_of_iran
1587
+ modifier_tooltip = estate_burghers_great_works_of_iran_tooltip
1588
+ effect_tooltip = "
1589
+ change_estate_land_share = {
1590
+ estate = estate_burghers
1591
+ share = 5
1592
+ }
1593
+ custom_tooltip = estate_burghers_great_works_of_iran_tt
1594
+ "
1595
+ }
1596
+ }
1597
+ else = {
1598
+ add_adm_power = 100
1599
+ hidden_effect = {
1600
+ unlock_estate_privilege = {
1601
+ estate_privilege = estate_burghers_great_works_of_iran
1602
+ }
1603
+ }
1604
+ }
1605
+ add_country_modifier = {
1606
+ name = turkoman_architectural_revival
1607
+ duration = 9125
1608
+ }
1609
+ }
1610
+ }
1611
+
1612
+ aq_qoyunlu_repopulate_iran = {
1613
+ icon = mission_conquer_central_deccan
1614
+ required_missions = { aq_qoyunlu_architecture }
1615
+ position = 9
1616
+
1617
+ provinces_to_highlight = {
1618
+ owned_by = ROOT
1619
+ culture_group = iranian
1620
+ OR = {
1621
+ NOT = {
1622
+ development = 15
1623
+ }
1624
+ NOT = {
1625
+ prosperity = 100
1626
+ }
1627
+ }
1628
+ }
1629
+
1630
+ trigger = {
1631
+ development_in_provinces = {
1632
+ value = 600
1633
+ culture_group = iranian
1634
+ }
1635
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1636
+ culture_group = iranian
1637
+ development = 15
1638
+ value = 10
1639
+ }
1640
+ if = {
1641
+ limit = {
1642
+ has_dlc = "Mandate of Heaven"
1643
+ }
1644
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1645
+ culture_group = iranian
1646
+ prosperity = 100
1647
+ value = 10
1648
+ }
1649
+ }
1650
+ }
1651
+
1652
+ effect = {
1653
+ custom_tooltip = turkoman_iranian_repopulation_tt
1654
+ add_country_modifier = {
1655
+ name = turkoman_repopulate_persia
1656
+ duration = 7300
1657
+ }
1658
+ hidden_effect = {
1659
+ for = {
1660
+ amount = 10
1661
+ effect = "
1662
+ random_owned_province = {
1663
+ limit = {
1664
+ culture_group = iranian
1665
+ }
1666
+ add_base_tax = 1
1667
+ }
1668
+ "
1669
+ }
1670
+ }
1671
+ }
1672
+ }
1673
+
1674
+ aq_qoyunlu_shahanshahs_of_eranshahr = {
1675
+ icon = mission_persianate_empire
1676
+ required_missions = { aq_qoyunlu_repopulate_iran aq_qoyunlu_splendid_court }
1677
+ position = 9
1678
+
1679
+ trigger = {
1680
+ stability = 3
1681
+ prestige = 90
1682
+ legitimacy = 90
1683
+ is_at_war = no
1684
+ }
1685
+
1686
+ effect = {
1687
+ country_event = { id = flavor_turkoman.5 }
1688
+ custom_tooltip = turkoman_shahanshah_insight_tt
1689
+ tooltip = {
1690
+ add_country_modifier = {
1691
+ name = turkoman_shahanshahs
1692
+ duration = 7300
1693
+ }
1694
+ }
1695
+ }
1696
+ }
1697
+ }
1698
+
1699
+ aq_qoyunlu_fifth = {
1700
+ slot = 5
1701
+ generic = no
1702
+ ai = yes
1703
+ potential_on_load = {
1704
+ has_dlc = "King of Kings"
1705
+ }
1706
+ potential = {
1707
+ tag = AKK
1708
+ NOT = { map_setup = map_setup_random }
1709
+ has_dlc = "King of Kings"
1710
+ }
1711
+ has_country_shield = yes
1712
+
1713
+ aq_qoyunlu_caucasian_consolidation = {
1714
+ icon = mission_the_caucasus_rus
1715
+ required_missions = { aq_qoyunlu_rally_the_turkmen }
1716
+ position = 2
1717
+
1718
+ provinces_to_highlight = {
1719
+ region = caucasia_region
1720
+ OR = {
1721
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1722
+ NOT = { religion = ROOT }
1723
+ nationalism = 1
1724
+ }
1725
+ }
1726
+
1727
+ trigger = {
1728
+ OR = {
1729
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1730
+ region = caucasia_region
1731
+ religion = ROOT
1732
+ value = 9
1733
+ }
1734
+ AND = {
1735
+ custom_trigger_tooltip = {
1736
+ tooltip = turkoman_accepted_caucasian_tt
1737
+ calc_true_if = {
1738
+ accepted_culture = armenian
1739
+ accepted_culture = georgian
1740
+ accepted_culture = dagestani
1741
+ accepted_culture = circassian
1742
+ amount = 2
1743
+ }
1744
+ }
1745
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1746
+ region = caucasia_region
1747
+ NOT = {
1748
+ nationalism = 1
1749
+ }
1750
+ value = 9
1751
+ }
1752
+ }
1753
+ }
1754
+ }
1755
+
1756
+ effect = {
1757
+ caucasia_region = {
1758
+ limit = {
1759
+ NOT = { is_core = ROOT }
1760
+ NOT = { is_permanent_claim = ROOT }
1761
+ }
1762
+ add_permanent_claim = ROOT
1763
+ }
1764
+ if = {
1765
+ limit = {
1766
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1767
+ region = caucasia_region
1768
+ religion = ROOT
1769
+ value = 10
1770
+ }
1771
+ }
1772
+ custom_tooltip = turkoman_convert_caucasia_tt_yes
1773
+ tooltip = {
1774
+ caucasia_region = {
1775
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1776
+ add_province_modifier = {
1777
+ name = "turkoman_caucasian_ghazis"
1778
+ duration = -1
1779
+ }
1780
+ }
1781
+ }
1782
+ }
1783
+ else = {
1784
+ custom_tooltip = turkoman_convert_caucasia_tt_no
1785
+ tooltip = {
1786
+ caucasia_region = {
1787
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1788
+ add_province_modifier = {
1789
+ name = "turkoman_caucasian_ghazis"
1790
+ duration = -1
1791
+ }
1792
+ }
1793
+ }
1794
+ }
1795
+ if = {
1796
+ limit = {
1797
+ custom_trigger_tooltip = {
1798
+ tooltip = turkoman_accepted_caucasian_tt
1799
+ calc_true_if = {
1800
+ accepted_culture = armenian
1801
+ accepted_culture = georgian
1802
+ accepted_culture = dagestani
1803
+ accepted_culture = circassian
1804
+ amount = 2
1805
+ }
1806
+ }
1807
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1808
+ region = caucasia_region
1809
+ NOT = {
1810
+ nationalism = 1
1811
+ }
1812
+ value = 9
1813
+ }
1814
+ }
1815
+ custom_tooltip = turkoman_accept_caucasia_tt_yes
1816
+ tooltip = {
1817
+ caucasia_region = {
1818
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1819
+ add_province_modifier = {
1820
+ name = "turkoman_consolidation_of_caucasia"
1821
+ duration = -1
1822
+ }
1823
+ }
1824
+ }
1825
+ }
1826
+ else = {
1827
+ custom_tooltip = turkoman_accept_caucasia_tt_no
1828
+ tooltip = {
1829
+ caucasia_region = {
1830
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1831
+ add_province_modifier = {
1832
+ name = "turkoman_consolidation_of_caucasia"
1833
+ duration = -1
1834
+ }
1835
+ }
1836
+ }
1837
+ }
1838
+ custom_tooltip = turkoman_both_bonuses_tt
1839
+ hidden_effect = {
1840
+ if = {
1841
+ limit = {
1842
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1843
+ region = caucasia_region
1844
+ religion = ROOT
1845
+ value = 10
1846
+ }
1847
+ }
1848
+ caucasia_region = {
1849
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1850
+ add_province_modifier = {
1851
+ name = "turkoman_caucasian_ghazis"
1852
+ duration = -1
1853
+ }
1854
+ }
1855
+ }
1856
+ if = {
1857
+ limit = {
1858
+ custom_trigger_tooltip = {
1859
+ tooltip = turkoman_accepted_caucasian_tt
1860
+ calc_true_if = {
1861
+ accepted_culture = armenian
1862
+ accepted_culture = georgian
1863
+ accepted_culture = dagestani
1864
+ accepted_culture = circassian
1865
+ amount = 2
1866
+ }
1867
+ }
1868
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1869
+ region = caucasia_region
1870
+ NOT = {
1871
+ nationalism = 1
1872
+ }
1873
+ value = 9
1874
+ }
1875
+ }
1876
+ caucasia_region = {
1877
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1878
+ add_province_modifier = {
1879
+ name = "turkoman_consolidation_of_caucasia"
1880
+ duration = -1
1881
+ }
1882
+ }
1883
+ }
1884
+ }
1885
+ }
1886
+ }
1887
+
1888
+ aq_qoyunlu_custodian_of_baghdad = {
1889
+ icon = mission_into_persia_1
1890
+ required_missions = { aq_qoyunlu_dismantle_qara_qoyunlu }
1891
+ position = 3
1892
+
1893
+ provinces_to_highlight = {
1894
+ province_id = 410
1895
+ }
1896
+
1897
+ trigger = {
1898
+ owns = 410
1899
+ 410 = {
1900
+ OR = {
1901
+ is_prosperous = yes
1902
+ development = 20
1903
+ }
1904
+ }
1905
+ 410 = {
1906
+ has_tax_building_trigger = yes
1907
+ }
1908
+ 410 = {
1909
+ has_production_building_trigger = yes
1910
+ }
1911
+ 410 = {
1912
+ has_trade_building_trigger = yes
1913
+ }
1914
+ }
1915
+
1916
+ effect = {
1917
+ 410 = {
1918
+ add_base_tax = 3
1919
+ }
1920
+ 410 = {
1921
+ add_province_modifier = {
1922
+ name = "turkoman_the_city_of_peace"
1923
+ duration = -1
1924
+ }
1925
+ }
1926
+ basra_area = {
1927
+ limit = {
1928
+ NOT = { is_core = ROOT }
1929
+ NOT = { is_permanent_claim = ROOT }
1930
+ }
1931
+ add_permanent_claim = ROOT
1932
+ }
1933
+ khuzestan_area = {
1934
+ limit = {
1935
+ NOT = { is_core = ROOT }
1936
+ NOT = { is_permanent_claim = ROOT }
1937
+ }
1938
+ add_permanent_claim = ROOT
1939
+ }
1940
+ }
1941
+ }
1942
+
1943
+ aq_qoyunlu_house_of_wisdom = {
1944
+ icon = mission_quran
1945
+ required_missions = { aq_qoyunlu_custodian_of_baghdad }
1946
+ position = 4
1947
+
1948
+ provinces_to_highlight = {
1949
+ province_id = 410
1950
+ }
1951
+
1952
+ trigger = {
1953
+ owns = 410
1954
+ 410 = {
1955
+ base_tax = 10
1956
+ }
1957
+ OR = {
1958
+ 410 = {
1959
+ has_building = university
1960
+ }
1961
+ ADM = 5
1962
+ ruler_has_personality = scholar_personality
1963
+ ruler_has_personality = free_thinker_personality
1964
+ }
1965
+ }
1966
+
1967
+ effect = {
1968
+ if = {
1969
+ limit = {
1970
+ piety = 0
1971
+ }
1972
+ add_piety = 0.25
1973
+ }
1974
+ else_if = {
1975
+ limit = {
1976
+ NOT = { piety = 0 }
1977
+ }
1978
+ add_piety = -0.25
1979
+ }
1980
+ add_country_modifier = {
1981
+ name = "turkoman_house_of_wisdom"
1982
+ duration = 3650
1983
+ }
1984
+ }
1985
+ }
1986
+
1987
+ aq_qoyunlu_era = {
1988
+ icon = qara_qoyunlu_era
1989
+ required_missions = { aq_qoyunlu_house_of_wisdom }
1990
+ position = 5
1991
+
1992
+ provinces_to_highlight = {
1993
+ }
1994
+
1995
+ trigger = {
1996
+ stability = 3
1997
+ total_development = 500
1998
+ prestige = 90
1999
+ legitimacy = 90
2000
+ religious_unity = 0.75
2001
+ if = {
2002
+ limit = {
2003
+ has_dlc = "Mandate of Heaven"
2004
+ }
2005
+ OR = {
2006
+ in_golden_age = yes
2007
+ has_had_golden_age = yes
2008
+ }
2009
+ }
2010
+ }
2011
+
2012
+ effect = {
2013
+ if = {
2014
+ limit = {
2015
+ has_dlc = "Mandate of Heaven"
2016
+ }
2017
+ custom_tooltip = turkoman_if_used_ge_rest_else_30_years_extension_tt
2018
+ if = {
2019
+ limit = { has_had_golden_age = yes }
2020
+ reset_golden_age = yes
2021
+ }
2022
+ else_if = {
2023
+ limit = { in_golden_age = yes }
2024
+ extend_golden_age = 360
2025
+ }
2026
+ add_country_modifier = {
2027
+ name = "turkoman_era_of_white_sheep"
2028
+ duration = 18250
2029
+ }
2030
+ }
2031
+ else = {
2032
+ add_country_modifier = {
2033
+ name = "turkoman_era_of_white_sheep2"
2034
+ duration = 18250
2035
+ }
2036
+ }
2037
+ }
2038
+ }
2039
+
2040
+ aq_qoyunlu_control_hormuz = {
2041
+ icon = mission_conquer_andhra_bah
2042
+ required_missions = { aq_qoyunlu_dominate_the_gulf }
2043
+ position = 6
2044
+
2045
+ provinces_to_highlight = {
2046
+ OR = {
2047
+ AND = {
2048
+ province_id = 2999
2049
+ NOT = {
2050
+ 2999 = { trade_share = { country = ROOT share = 75 } }
2051
+ }
2052
+ }
2053
+ AND = {
2054
+ owned_by = ROOT
2055
+ province_has_center_of_trade_of_level = 1
2056
+ NOT = { base_production = 6 }
2057
+ any_trade_node_member_province = { province_id = 2999 }
2058
+ }
2059
+ }
2060
+ }
2061
+
2062
+ trigger = {
2063
+ 2999 = {
2064
+ calc_true_if = {
2065
+ all_trade_node_member_province = {
2066
+ province_has_center_of_trade_of_level = 1
2067
+ base_production = 6
2068
+ owned_by = ROOT
2069
+ }
2070
+ amount = 3
2071
+ }
2072
+ }
2073
+ 2999 = { #Hormuz
2074
+ trade_share = {
2075
+ country = ROOT
2076
+ share = 75
2077
+ }
2078
+ }
2079
+ }
2080
+
2081
+ effect = {
2082
+ add_years_of_trade_income = {
2083
+ years = 1
2084
+ custom_tooltip = turkoman_trade_income
2085
+ }
2086
+ add_country_modifier = {
2087
+ name = turkoman_control_of_hormuz
2088
+ duration = -1
2089
+ }
2090
+ custom_tooltip = turkoman_gain_mercantilism
2091
+ hidden_effect = {
2092
+ if = {
2093
+ limit = {
2094
+ owns = 2218
2095
+ 2218 = {
2096
+ province_has_center_of_trade_of_level = 1
2097
+ }
2098
+ }
2099
+ add_mercantilism = 1
2100
+ }
2101
+ if = {
2102
+ limit = {
2103
+ owns = 4332
2104
+ 4332 = {
2105
+ province_has_center_of_trade_of_level = 1
2106
+ }
2107
+ }
2108
+ add_mercantilism = 1
2109
+ }
2110
+ if = {
2111
+ limit = {
2112
+ owns = 431
2113
+ 431 = {
2114
+ province_has_center_of_trade_of_level = 1
2115
+ }
2116
+ }
2117
+ add_mercantilism = 1
2118
+ }
2119
+ if = {
2120
+ limit = {
2121
+ owns = 2999
2122
+ 2999 = {
2123
+ province_has_center_of_trade_of_level = 1
2124
+ }
2125
+ }
2126
+ add_mercantilism = 1
2127
+ }
2128
+ if = {
2129
+ limit = {
2130
+ owns = 400
2131
+ 400 = {
2132
+ province_has_center_of_trade_of_level = 1
2133
+ }
2134
+ }
2135
+ add_mercantilism = 1
2136
+ }
2137
+ }
2138
+ }
2139
+ }
2140
+
2141
+ aq_qoyunlu_the_oghuz_homeland = {
2142
+ icon = mission_lit_harness_steppes
2143
+ required_missions = { aq_qoyunlu_legacy_of_seljuk }
2144
+ position = 8
2145
+
2146
+ provinces_to_highlight = {
2147
+ OR = {
2148
+ area = termez_area
2149
+ area = kyzylkum_area
2150
+ area = transoxiana_area
2151
+ area = transcaspia_area
2152
+ area = khiva_area
2153
+ }
2154
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2155
+ }
2156
+
2157
+ trigger = {
2158
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2159
+ OR = {
2160
+ area = termez_area
2161
+ area = kyzylkum_area
2162
+ area = transoxiana_area
2163
+ area = transcaspia_area
2164
+ area = khiva_area
2165
+ }
2166
+ value = 12
2167
+ }
2168
+ }
2169
+
2170
+ effect = {
2171
+ if = {
2172
+ limit = {
2173
+ has_dlc = "The Cossacks"
2174
+ }
2175
+ custom_tooltip = turkoman_tribes_access_tt
2176
+ set_country_flag = turkoman_unlocked_tribes
2177
+ }
2178
+ add_country_modifier = {
2179
+ name = "turkoman_sons_of_conquerors"
2180
+ duration = -1
2181
+ }
2182
+ }
2183
+ }
2184
+
2185
+ }
missions/KoK_Arabia_Missions.txt ADDED
@@ -0,0 +1,2264 @@
1
+ KoK_ARB_hedjaz_najd_bedouin_1 = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ ARB_hedjaz_najd_bedouin_potential = yes
10
+ has_dlc = "King of Kings"
11
+ NOT = { map_setup = map_setup_random }
12
+ }
13
+ has_country_shield = yes
14
+
15
+ ARB_assemble_a_shura = {
16
+ icon = mission_court_education
17
+ required_missions = { }
18
+ position = 1
19
+ provinces_to_highlight = {
20
+ }
21
+ trigger = {
22
+ has_adm_advisor = yes
23
+ has_dip_advisor = yes
24
+ has_mil_advisor = yes
25
+ }
26
+ effect = {
27
+ if = {
28
+ limit = {
29
+ religion_group = muslim
30
+ }
31
+ custom_tooltip = ARB_10_piety_for_adm_advisor
32
+ hidden_effect = {
33
+ for_every_level_of_advisor_do = {
34
+ type = adm
35
+ effect = "
36
+ if = {
37
+ limit = {
38
+ piety = 0
39
+ }
40
+ add_piety = 0.1
41
+ }
42
+ else = {
43
+ add_piety = -0.1
44
+ }
45
+ "
46
+ }
47
+ }
48
+ }
49
+ else = {
50
+ custom_tooltip = ARB_10_gov_reform_for_adm_advisor
51
+ hidden_effect = {
52
+ for_every_level_of_advisor_do = {
53
+ type = adm
54
+ effect = "
55
+ change_government_reform_progress = 10
56
+ "
57
+ }
58
+ }
59
+ }
60
+
61
+ if = {
62
+ limit = {
63
+ has_government_mechanic = tribal_federation_mechanic
64
+ }
65
+ custom_tooltip = ARB_10_tribal_allegiance_for_dip_advisor
66
+ hidden_effect = {
67
+ for_every_level_of_advisor_do = {
68
+ type = dip
69
+ effect = "
70
+ add_government_power = {
71
+ mechanic_type = tribal_federation_mechanic
72
+ power_type = tribal_allegiance
73
+ value = 10
74
+ }
75
+ "
76
+ }
77
+ }
78
+ }
79
+ else = {
80
+ custom_tooltip = ARB_1_corruption_for_dip_advisor
81
+ hidden_effect = {
82
+ for_every_level_of_advisor_do = {
83
+ type = dip
84
+ effect = "
85
+ add_corruption = -1
86
+ "
87
+ }
88
+ }
89
+ }
90
+
91
+ custom_tooltip = ARB_5_army_trad_for_mil_advisor
92
+ hidden_effect = {
93
+ for_every_level_of_advisor_do = {
94
+ type = mil
95
+ effect = "
96
+ add_army_tradition_or_mil_power = { amount = 5 }
97
+ "
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ ARB_jerusalem = {
104
+ icon = jerusalem
105
+ required_missions = { ARB_custodians_of_the_holy_cities }
106
+ position = 4
107
+ provinces_to_highlight = {
108
+ OR = {
109
+ area = trans_jordan_area
110
+ area = palestine_area
111
+ area = tabuk_area
112
+ }
113
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
114
+ }
115
+ trigger = {
116
+ 379 = { country_or_non_sovereign_subject_holds = ROOT }
117
+
118
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
119
+ OR = {
120
+ area = trans_jordan_area
121
+ area = palestine_area
122
+ area = tabuk_area
123
+ }
124
+ value = 5
125
+ }
126
+ }
127
+ effect = {
128
+ give_claims = { region = egypt_region }
129
+
130
+ custom_tooltip = " "
131
+
132
+ country_event_with_option_insight = {
133
+ id = flavor_ARB.3
134
+ option_1 = "
135
+ add_country_modifier = {
136
+ name = ARB_dhimmi_self_government
137
+ duration = 9125
138
+ }
139
+ add_dip_power = 50
140
+ "
141
+ option_2 = "
142
+ if = {
143
+ limit = {
144
+ NOT = {
145
+ 379 = { religion = ROOT }
146
+ }
147
+ }
148
+ 379 = { change_religion = ROOT }
149
+ custom_tooltip = \" \"
150
+ }
151
+ add_years_of_income = 1
152
+ "
153
+ }
154
+ }
155
+ }
156
+
157
+ ARB_mamluks = {
158
+ icon = mission_egyptian_mamluk_soldier
159
+ required_missions = { ARB_jerusalem }
160
+ position = 5
161
+ provinces_to_highlight = {
162
+ region = egypt_region
163
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
164
+ }
165
+ trigger = {
166
+ 358 = { country_or_non_sovereign_subject_holds = ROOT }
167
+ 361 = { country_or_non_sovereign_subject_holds = ROOT }
168
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
169
+ region = egypt_region
170
+ value = 15
171
+ }
172
+ }
173
+ effect = {
174
+ give_claims = { area = tripolitania_area }
175
+ give_claims = { area = tunisia_area }
176
+ give_claims = { area = djerba_area }
177
+ give_claims = { area = fezzan_area }
178
+
179
+ custom_tooltip = " "
180
+
181
+ if = {
182
+ limit = {
183
+ has_dlc = "Cradle of Civilization"
184
+ religious_school = {
185
+ group = muslim
186
+ school = hanbali_school
187
+ }
188
+ }
189
+ country_event_with_option_insight = {
190
+ id = flavor_ARB.4
191
+ option_1 = "
192
+ add_treasury = -1000
193
+ if = {
194
+ limit = {
195
+ has_dlc = \"Leviathan\"
196
+ }
197
+ 361 = {
198
+ set_great_project_tier_1 = {
199
+ type = al_azhar_university
200
+ }
201
+ }
202
+ custom_tooltip = \" \"
203
+ }
204
+ else = {
205
+ 361 = {
206
+ add_province_modifier = {
207
+ name = ARB_al_azhar_university
208
+ duration = -1
209
+ }
210
+ }
211
+ }
212
+ 361 = { add_or_upgrade_university_building = yes }
213
+ "
214
+ option_2 = "
215
+ if = {
216
+ limit = { has_estate = estate_church }
217
+ add_estate_loyalty = {
218
+ estate = estate_church
219
+ loyalty = 25
220
+ }
221
+ custom_tooltip = \" \"
222
+ }
223
+
224
+ add_country_modifier = {
225
+ name = ARB_hanbali_scholars
226
+ duration = 10950
227
+ }
228
+ "
229
+ option_3 = "
230
+ add_prestige_or_monarch_power = { amount = 10 }
231
+ "
232
+ }
233
+ }
234
+ else = {
235
+ country_event_with_option_insight = {
236
+ id = flavor_ARB.4
237
+ option_1 = "
238
+ add_treasury = -1000
239
+ if = {
240
+ limit = {
241
+ has_dlc = \"Leviathan\"
242
+ }
243
+ 361 = {
244
+ set_great_project_tier_1 = {
245
+ type = al_azhar_university
246
+ }
247
+ }
248
+ custom_tooltip = \" \"
249
+ }
250
+ else = {
251
+ 361 = {
252
+ add_province_modifier = {
253
+ name = ARB_al_azhar_university
254
+ duration = -1
255
+ }
256
+ }
257
+ }
258
+ add_or_upgrade_university_building = yes
259
+ "
260
+ option_2 = "
261
+ add_prestige_or_monarch_power = { amount = 10 }
262
+ "
263
+ }
264
+ }
265
+ }
266
+ }
267
+
268
+ ARB_protectors_of_the_holy_cities = {
269
+ icon = mission_into_persia_1
270
+ required_missions = { }
271
+ position = 6
272
+ provinces_to_highlight = {
273
+ OR = {
274
+ province_id = 384
275
+ province_id = 385
276
+ }
277
+ OR = {
278
+ NOT = { owned_by = ROOT }
279
+ local_autonomy = 10
280
+ }
281
+ }
282
+ trigger = {
283
+ OR = {
284
+ theologian = 1
285
+ inquisitor = 1
286
+ has_adm_advisor_2 = yes
287
+ }
288
+
289
+ 384 = {
290
+ owned_by = ROOT
291
+ NOT = { local_autonomy = 10 }
292
+ }
293
+ 385 = {
294
+ owned_by = ROOT
295
+ NOT = { local_autonomy = 10 }
296
+ }
297
+ }
298
+ effect = {
299
+ add_country_modifier = {
300
+ name = ARB_stewards_of_the_two_cities
301
+ duration = 10950
302
+ }
303
+
304
+ 384 = {
305
+ if = {
306
+ limit = {
307
+ has_dlc = "Mandate of Heaven"
308
+ }
309
+ add_prosperity = 50
310
+ }
311
+ add_province_modifier = {
312
+ name = ARB_well_managed
313
+ duration = -1
314
+ }
315
+ }
316
+ 385 = {
317
+ if = {
318
+ limit = {
319
+ has_dlc = "Mandate of Heaven"
320
+ }
321
+ add_prosperity = 50
322
+ }
323
+ add_province_modifier = {
324
+ name = ARB_well_managed
325
+ duration = -1
326
+ }
327
+ }
328
+ }
329
+ }
330
+
331
+ ARB_safeguard_pilgrim_routes = {
332
+ icon = mission_traverse_the_sahara
333
+ required_missions = { ARB_protectors_of_the_holy_cities }
334
+ position = 7
335
+ provinces_to_highlight = {
336
+ OR = {
337
+ province_id = 384
338
+ province_id = 385
339
+ }
340
+ OR = {
341
+ NOT = { owned_by = ROOT }
342
+ NOT = { base_tax = 5 }
343
+ NOT = { has_tax_building_trigger = yes }
344
+ }
345
+ }
346
+ trigger = {
347
+ 384 = {
348
+ owned_by = ROOT
349
+ base_tax = 5
350
+ has_tax_building_trigger = yes
351
+ }
352
+ 385 = {
353
+ owned_by = ROOT
354
+ base_tax = 5
355
+ has_tax_building_trigger = yes
356
+ }
357
+ }
358
+ effect = {
359
+ 384 = {
360
+ add_or_upgrade_tax_building = yes
361
+
362
+ add_province_modifier = {
363
+ name = ARB_increased_pilgrim_traction
364
+ duration = -1
365
+ }
366
+ }
367
+
368
+ 385 = {
369
+ add_or_upgrade_tax_building = yes
370
+
371
+ add_province_modifier = {
372
+ name = ARB_increased_pilgrim_traction
373
+ duration = -1
374
+ }
375
+ }
376
+ }
377
+ }
378
+
379
+ ARB_spirit_of_hajj = {
380
+ icon = mission_into_arabia
381
+ required_missions = { ARB_safeguard_pilgrim_routes ARB_expand_jeddah }
382
+ position = 8
383
+ provinces_to_highlight = {
384
+ province_id = 385
385
+ if = {
386
+ limit = {
387
+ has_dlc = "Leviathan"
388
+ ROOT = {
389
+ religion_group = muslim
390
+ }
391
+ }
392
+ OR = {
393
+ NOT = {
394
+ has_great_project = {
395
+ type = kaaba
396
+ tier = 3
397
+ }
398
+ }
399
+ NOT = { owned_by = ROOT }
400
+ }
401
+ }
402
+ else = {
403
+ OR = {
404
+ NOT = { development = 30 }
405
+ NOT = { owned_by = ROOT }
406
+ NOT = { num_of_buildings_in_province = 5 }
407
+ }
408
+ }
409
+ }
410
+ trigger = {
411
+ if = {
412
+ limit = {
413
+ has_dlc = "Leviathan"
414
+ ROOT = {
415
+ religion_group = muslim
416
+ }
417
+ }
418
+ 385 = {
419
+ has_great_project = {
420
+ type = kaaba
421
+ tier = 3
422
+ }
423
+ }
424
+ }
425
+ else = {
426
+ 385 = {
427
+ development = 30
428
+ owned_by = ROOT
429
+ num_of_buildings_in_province = 5
430
+ }
431
+ }
432
+
433
+ if = {
434
+ limit = {
435
+ religion_group = muslim
436
+ }
437
+ OR = {
438
+ piety = 0.9
439
+ NOT = { piety = -0.89 }
440
+ }
441
+ }
442
+ else = {
443
+ has_adm_advisor_3 = yes
444
+ total_base_tax = 100
445
+ }
446
+ }
447
+ effect = {
448
+ add_stability_or_adm_power = yes
449
+
450
+ custom_tooltip = " "
451
+
452
+ if = {
453
+ limit = {
454
+ religion_group = muslim
455
+ }
456
+ add_country_modifier = {
457
+ name = ARB_guarantors_of_peace
458
+ duration = -1
459
+ }
460
+ }
461
+ else = {
462
+ add_country_modifier = {
463
+ name = ARB_guarantors_of_peace_not_muslim
464
+ duration = -1
465
+ }
466
+ }
467
+
468
+ if = {
469
+ limit = {
470
+ has_estate = estate_church
471
+ }
472
+ complex_dynamic_effect = {
473
+ first_custom_tooltip = ARB_if_at_least_60_church_loyalty
474
+ first_limit = "
475
+ estate_loyalty = {
476
+ estate = estate_church
477
+ loyalty = 60
478
+ }
479
+ "
480
+ first_effect = "
481
+ add_country_modifier = {
482
+ name = ARB_support_of_the_ulema
483
+ duration = 7300
484
+ }
485
+ "
486
+ }
487
+ }
488
+ }
489
+ }
490
+ }
491
+
492
+ KoK_ARB_hedjaz_najd_bedouin_2 = {
493
+ slot = 2
494
+ generic = no
495
+ ai = yes
496
+ potential_on_load = {
497
+ has_dlc = "King of Kings"
498
+ }
499
+ potential = {
500
+ ARB_hedjaz_najd_bedouin_potential = yes
501
+ has_dlc = "King of Kings"
502
+ NOT = { map_setup = map_setup_random }
503
+ }
504
+ has_country_shield = yes
505
+
506
+ ARB_traditional_interpretation = {
507
+ icon = mission_reclaim_morocco
508
+ required_missions = { ARB_assemble_a_shura }
509
+ position = 2
510
+ provinces_to_highlight = {
511
+ }
512
+ trigger = {
513
+ if = {
514
+ limit = {
515
+ religion_group = muslim
516
+ }
517
+ if = {
518
+ limit = {
519
+ has_dlc = "Cradle of Civilization"
520
+ religious_school = {
521
+ group = muslim
522
+ school = hanbali_school
523
+ }
524
+ }
525
+ piety = 0.9
526
+ }
527
+ else = {
528
+ OR = {
529
+ piety = 0.9
530
+ NOT = { piety = -0.89 }
531
+ }
532
+ }
533
+ }
534
+ else = {
535
+ stability = 2
536
+ religious_unity = 0.75
537
+ if = {
538
+ limit = {
539
+ has_estate = estate_church
540
+ }
541
+ estate_loyalty = {
542
+ estate = estate_church
543
+ loyalty = 60
544
+ }
545
+ }
546
+ }
547
+ }
548
+ effect = {
549
+ add_stability_or_adm_power = yes
550
+
551
+ custom_tooltip = " "
552
+
553
+ if = {
554
+ limit = {
555
+ religion_group = muslim
556
+ }
557
+ if = {
558
+ limit = {
559
+ has_dlc = "Cradle of Civilization"
560
+ religious_school = {
561
+ group = muslim
562
+ school = hanbali_school
563
+ }
564
+ }
565
+ set_country_flag = ARB_buff_enforce_religious_unity_flag
566
+ custom_tooltip = ARB_buff_enforce_religious_unity
567
+ hidden_effect = {
568
+ if = {
569
+ limit = { has_ruler_modifier = muslim_enforced_religion }
570
+ remove_country_modifier = muslim_enforced_religion
571
+ add_ruler_modifier = { name = muslim_enforced_religion duration = -1 }
572
+ }
573
+ }
574
+
575
+ custom_tooltip = " "
576
+
577
+ set_country_flag = ARB_may_fire_wahabism
578
+ country_event_with_effect_insight = {
579
+ id = muslim_school_events.22
580
+ effect = "
581
+ custom_tooltip = muslim_school_events.22.a.tt
582
+
583
+ custom_tooltip = ABR_hanbali_countries_now_buff_religious_culture
584
+ "
585
+ }
586
+ }
587
+ else = {
588
+ simple_dynamic_effect = {
589
+ first_custom_tooltip = ARB_if_legalism
590
+ first_limit = "
591
+ piety = 0.9
592
+ "
593
+ first_effect = "
594
+ set_country_flag = ARB_buff_enforce_religious_unity_flag
595
+ custom_tooltip = ARB_buff_enforce_religious_unity
596
+ hidden_effect = {
597
+ if = {
598
+ limit = { has_ruler_modifier = muslim_enforced_religion }
599
+ remove_country_modifier = muslim_enforced_religion
600
+ add_ruler_modifier = { name = muslim_enforced_religion duration = -1 }
601
+ }
602
+ }
603
+ "
604
+ second_custom_tooltip = ARB_if_mysticism
605
+ second_limit = "
606
+ NOT = { piety = -0.89 }
607
+ "
608
+ second_effect = "
609
+ if = {
610
+ limit = {
611
+ has_dlc = \"Golden Century\"
612
+ }
613
+ custom_tooltip = ARB_grant_access_to_muslim_holy_orders
614
+ set_country_flag = ARB_grant_access_to_muslim_holy_orders_flag
615
+ }
616
+ else = {
617
+ add_country_modifier = {
618
+ name = ARB_welcoming_the_sufis
619
+ duration = -1
620
+ }
621
+ }
622
+ "
623
+ }
624
+ }
625
+ }
626
+
627
+ else = {
628
+ add_country_modifier = {
629
+ name = ARB_following_teachings_of_old #fallback
630
+ duration = -1
631
+ }
632
+ }
633
+ }
634
+ }
635
+
636
+ ARB_custodians_of_the_holy_cities = {
637
+ icon = mission_tear_down_spanish_strongholds
638
+ required_missions = { ARB_tribal_feuds }
639
+ position = 3
640
+ provinces_to_highlight = {
641
+ OR = {
642
+ province_id = 384
643
+ province_id = 385
644
+ }
645
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
646
+ }
647
+ trigger = {
648
+ 384 = {
649
+ country_or_non_sovereign_subject_holds = ROOT
650
+ }
651
+ 385 = {
652
+ country_or_non_sovereign_subject_holds = ROOT
653
+ }
654
+ }
655
+ effect = {
656
+ #Yemen
657
+ yemen_area = {
658
+ limit = {
659
+ NOT = { is_core = ROOT }
660
+ NOT = { is_permanent_claim = ROOT }
661
+ }
662
+ add_permanent_claim = ROOT
663
+ }
664
+ upper_yemen_area = {
665
+ limit = {
666
+ NOT = { is_core = ROOT }
667
+ NOT = { is_permanent_claim = ROOT }
668
+ }
669
+ add_permanent_claim = ROOT
670
+ }
671
+ hadramut_area = {
672
+ limit = {
673
+ NOT = { is_core = ROOT }
674
+ NOT = { is_permanent_claim = ROOT }
675
+ }
676
+ add_permanent_claim = ROOT
677
+ }
678
+ mahra_area = {
679
+ limit = {
680
+ NOT = { is_core = ROOT }
681
+ NOT = { is_permanent_claim = ROOT }
682
+ }
683
+ add_permanent_claim = ROOT
684
+ }
685
+ asir_area = {
686
+ limit = {
687
+ NOT = { is_core = ROOT }
688
+ NOT = { is_permanent_claim = ROOT }
689
+ }
690
+ add_permanent_claim = ROOT
691
+ }
692
+ tihama_al_yemen_area = {
693
+ limit = {
694
+ NOT = { is_core = ROOT }
695
+ NOT = { is_permanent_claim = ROOT }
696
+ }
697
+ add_permanent_claim = ROOT
698
+ }
699
+ #syria and palestine
700
+ syria_area = {
701
+ limit = {
702
+ NOT = { is_core = ROOT }
703
+ NOT = { is_permanent_claim = ROOT }
704
+ }
705
+ add_permanent_claim = ROOT
706
+ }
707
+ syrian_desert_area = {
708
+ limit = {
709
+ NOT = { is_core = ROOT }
710
+ NOT = { is_permanent_claim = ROOT }
711
+ }
712
+ add_permanent_claim = ROOT
713
+ }
714
+ palestine_area = {
715
+ limit = {
716
+ NOT = { is_core = ROOT }
717
+ NOT = { is_permanent_claim = ROOT }
718
+ }
719
+ add_permanent_claim = ROOT
720
+ }
721
+ trans_jordan_area = {
722
+ limit = {
723
+ NOT = { is_core = ROOT }
724
+ NOT = { is_permanent_claim = ROOT }
725
+ }
726
+ add_permanent_claim = ROOT
727
+ }
728
+ aleppo_area = {
729
+ limit = {
730
+ NOT = { is_core = ROOT }
731
+ NOT = { is_permanent_claim = ROOT }
732
+ }
733
+ add_permanent_claim = ROOT
734
+ }
735
+ #top egypt
736
+ give_claims = { area = delta_area }
737
+ give_claims = { area = bahari_area }
738
+ give_claims = { area = gulf_of_arabia_area }
739
+
740
+ custom_tooltip = " "
741
+
742
+ add_country_modifier = {
743
+ name = ARB_holders_of_the_two_cities
744
+ duration = 10950
745
+ }
746
+
747
+ if = {
748
+ limit = {
749
+ piety = 0
750
+ }
751
+ add_piety = 0.1
752
+ }
753
+ else = {
754
+ add_piety = -0.1
755
+ }
756
+ }
757
+ }
758
+
759
+ ARB_conquer_al_sham = {
760
+ icon = mission_levantine_restoration
761
+ required_missions = { ARB_jerusalem ARB_custodians_of_the_holy_cities }
762
+ position = 5
763
+ provinces_to_highlight = {
764
+ OR = {
765
+ area = syria_area
766
+ area = syrian_desert_area
767
+ area = aleppo_area
768
+ }
769
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
770
+ }
771
+ trigger = {
772
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
773
+ OR = {
774
+ area = syria_area
775
+ area = syrian_desert_area
776
+ area = aleppo_area
777
+ }
778
+ value = 8
779
+ }
780
+ 382 = { country_or_non_sovereign_subject_holds = ROOT }
781
+ 377 = { country_or_non_sovereign_subject_holds = ROOT }
782
+ }
783
+ effect = {
784
+ 382 = {
785
+ add_province_modifier = {
786
+ name = ARB_northern_citadel
787
+ duration = -1
788
+ }
789
+ }
790
+ 377 = {
791
+ add_province_modifier = {
792
+ name = ARB_northern_citadel
793
+ duration = -1
794
+ }
795
+ }
796
+
797
+ custom_tooltip = " "
798
+
799
+ create_general_with_pips = {
800
+ tradition = 80
801
+ add_shock = 2
802
+ }
803
+
804
+ custom_tooltip = " "
805
+
806
+ give_claims = { area = north_kurdistan_area }
807
+ give_claims = { area = shahrizor_area }
808
+ give_claims = { area = tabriz_area }
809
+ }
810
+ }
811
+
812
+ ARB_expand_jeddah = {
813
+ icon = mission_arabian_sea_trade
814
+ required_missions = { ARB_protectors_of_the_holy_cities }
815
+ position = 7
816
+ provinces_to_highlight = {
817
+ province_id = 2331
818
+ OR = {
819
+ NOT = { owned_by = ROOT }
820
+ local_autonomy = 10
821
+ NOT = { has_trade_building_trigger = yes }
822
+ AND = {
823
+ NOT = { has_dock_building_trigger = yes }
824
+ NOT = { has_shipyard_building_trigger = yes }
825
+ }
826
+ }
827
+ }
828
+ trigger = {
829
+ 2331 = {
830
+ OR = {
831
+ has_dock_building_trigger = yes
832
+ has_shipyard_building_trigger = yes
833
+ }
834
+ has_trade_building_trigger = yes
835
+ owned_by = ROOT
836
+ NOT = { local_autonomy = 10 }
837
+ }
838
+ }
839
+ effect = {
840
+ 2331 = {
841
+ add_or_upgrade_trade_building = yes
842
+
843
+ custom_tooltip = " "
844
+
845
+ add_base_tax = 1
846
+ add_base_production = 1
847
+ add_base_manpower = 1
848
+
849
+ custom_tooltip = " "
850
+
851
+ add_province_modifier = {
852
+ name = ARB_port_in_jeddah
853
+ duration = -1
854
+ }
855
+ }
856
+
857
+ 384 = {
858
+ add_province_modifier = {
859
+ name = ARB_naval_routes
860
+ duration = -1
861
+ }
862
+ }
863
+
864
+ 385 = {
865
+ add_province_modifier = {
866
+ name = ARB_naval_routes
867
+ duration = -1
868
+ }
869
+ }
870
+ }
871
+ }
872
+ }
873
+
874
+ KoK_ARB_hedjaz_najd_bedouin_3 = {
875
+ slot = 3
876
+ generic = no
877
+ ai = yes
878
+ potential_on_load = {
879
+ has_dlc = "King of Kings"
880
+ }
881
+ potential = {
882
+ ARB_hedjaz_najd_bedouin_potential = yes
883
+ has_dlc = "King of Kings"
884
+ NOT = { map_setup = map_setup_random }
885
+ }
886
+ has_country_shield = yes
887
+
888
+ ARB_request_new_bayah = {
889
+ icon = mission_protect_granada
890
+ required_missions = { }
891
+ position = 1
892
+ provinces_to_highlight = {
893
+ }
894
+ trigger = {
895
+ num_of_generals = 1
896
+ army_size_percentage = 0.9
897
+ }
898
+ effect = {
899
+ if = {
900
+ limit = {
901
+ has_government_mechanic = tribal_federation_mechanic
902
+ }
903
+ add_government_power = {
904
+ mechanic_type = tribal_federation_mechanic
905
+ power_type = tribal_allegiance
906
+ value = 10
907
+ }
908
+ }
909
+ else = {
910
+ add_mil_power = 50
911
+ }
912
+
913
+ custom_tooltip = " "
914
+
915
+ custom_tooltip = ARB_get_permanent_claims_on_all_areas_bordering_us
916
+ hidden_effect = {
917
+ capital_scope = {
918
+ area = {
919
+ every_neighbor_province = {
920
+ area = {
921
+ add_permanent_claim = ROOT
922
+ }
923
+ }
924
+ }
925
+ }
926
+ }
927
+ }
928
+ }
929
+
930
+ ARB_tribal_feuds = {
931
+ icon = mission_turning_the_tables
932
+ required_missions = { ARB_request_new_bayah }
933
+ position = 2
934
+ provinces_to_highlight = {
935
+ OR = {
936
+ is_permanent_claim = ROOT
937
+ is_claim = ROOT
938
+ is_core = ROOT
939
+ }
940
+ NOT = { owned_by = ROOT }
941
+ }
942
+ trigger = {
943
+ OR = {
944
+ grown_by_development = 20
945
+ grown_by_states = 2
946
+ }
947
+ }
948
+ effect = {
949
+ add_country_modifier = {
950
+ name = ARB_social_cohesion
951
+ duration = 7300
952
+ }
953
+
954
+ yamamah_area = {
955
+ limit = {
956
+ NOT = { is_core = ROOT }
957
+ NOT = { is_permanent_claim = ROOT }
958
+ }
959
+ add_permanent_claim = ROOT
960
+ }
961
+ qasim_area = {
962
+ limit = {
963
+ NOT = { is_core = ROOT }
964
+ NOT = { is_permanent_claim = ROOT }
965
+ }
966
+ add_permanent_claim = ROOT
967
+ }
968
+ nafud_area = {
969
+ limit = {
970
+ NOT = { is_core = ROOT }
971
+ NOT = { is_permanent_claim = ROOT }
972
+ }
973
+ add_permanent_claim = ROOT
974
+ }
975
+ mecca_area = {
976
+ limit = {
977
+ NOT = { is_core = ROOT }
978
+ NOT = { is_permanent_claim = ROOT }
979
+ }
980
+ add_permanent_claim = ROOT
981
+ }
982
+ medina_area = {
983
+ limit = {
984
+ NOT = { is_core = ROOT }
985
+ NOT = { is_permanent_claim = ROOT }
986
+ }
987
+ add_permanent_claim = ROOT
988
+ }
989
+ tabuk_area = {
990
+ limit = {
991
+ NOT = { is_core = ROOT }
992
+ NOT = { is_permanent_claim = ROOT }
993
+ }
994
+ add_permanent_claim = ROOT
995
+ }
996
+ }
997
+ }
998
+
999
+ ARB_yemen = {
1000
+ icon = mission_develop_alhambra
1001
+ required_missions = { ARB_custodians_of_the_holy_cities ARB_rulers_of_the_highlands }
1002
+ position = 4
1003
+ provinces_to_highlight = {
1004
+ OR = {
1005
+ area = yemen_area
1006
+ area = upper_yemen_area
1007
+ area = hadramut_area
1008
+ area = mahra_area
1009
+ area = asir_area
1010
+ area = tihama_al_yemen_area
1011
+ }
1012
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1013
+ }
1014
+ trigger = {
1015
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1016
+ OR = {
1017
+ area = yemen_area
1018
+ area = upper_yemen_area
1019
+ area = hadramut_area
1020
+ area = mahra_area
1021
+ area = asir_area
1022
+ area = tihama_al_yemen_area
1023
+ }
1024
+ value = 14
1025
+ }
1026
+ }
1027
+ effect = {
1028
+ 1099 = {
1029
+ add_trade_modifier = {
1030
+ who = ROOT
1031
+ duration = -1
1032
+ power = 50
1033
+ key = ARB_holding_yemen
1034
+ }
1035
+ }
1036
+
1037
+ custom_tooltip = " "
1038
+
1039
+ custom_tooltip = ARB_every_owned_province_in_yemen
1040
+ tooltip = {
1041
+ add_province_modifier = {
1042
+ name = ARB_felicitous_arabia
1043
+ duration = 9125
1044
+ }
1045
+ }
1046
+ hidden_effect = {
1047
+ every_owned_province = {
1048
+ limit = {
1049
+ OR = {
1050
+ area = yemen_area
1051
+ area = upper_yemen_area
1052
+ area = hadramut_area
1053
+ area = mahra_area
1054
+ area = asir_area
1055
+ area = tihama_al_yemen_area
1056
+ }
1057
+ }
1058
+ add_province_modifier = {
1059
+ name = ARB_felicitous_arabia
1060
+ duration = 10950
1061
+ }
1062
+ }
1063
+ }
1064
+ }
1065
+ }
1066
+
1067
+ ARB_unite_arabia = {
1068
+ icon = arb_unite_arabia
1069
+ required_missions = { ARB_yemen ARB_wealth_and_power ARB_abbasid_legacy ARB_conquer_al_sham ARB_mamluks }
1070
+ position = 6
1071
+ provinces_to_highlight = {
1072
+ OR = {
1073
+ region = arabia_region
1074
+ region = egypt_region
1075
+ region = mashriq_region
1076
+ }
1077
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1078
+ }
1079
+ trigger = {
1080
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1081
+ OR = {
1082
+ region = arabia_region
1083
+ region = egypt_region
1084
+ region = mashriq_region
1085
+ }
1086
+ value = 90
1087
+ }
1088
+ }
1089
+ effect = {
1090
+ custom_tooltip = ARB_no_more_tech_req
1091
+ set_country_flag = free_arabia_forming_flag
1092
+
1093
+ custom_tooltip = " "
1094
+
1095
+ add_country_modifier = {
1096
+ name = ARB_claiming_title_of_caliph
1097
+ duration = -1
1098
+ }
1099
+
1100
+ custom_tooltip = ARB_upgrade_adopt_the_title_decision
1101
+ hidden_effect = {
1102
+ if = {
1103
+ limit = {
1104
+ has_ruler_modifier = khalifah
1105
+ }
1106
+ remove_country_modifier = khalifah
1107
+ add_ruler_modifier = {
1108
+ name = "ARB_khalifah_upgraded"
1109
+ duration = -1
1110
+ }
1111
+ }
1112
+ }
1113
+ }
1114
+ }
1115
+ }
1116
+
1117
+ KoK_ARB_hedjaz_najd_bedouin_4 = {
1118
+ slot = 4
1119
+ generic = no
1120
+ ai = yes
1121
+ potential_on_load = {
1122
+ has_dlc = "King of Kings"
1123
+ }
1124
+ potential = {
1125
+ ARB_hedjaz_najd_bedouin_potential = yes
1126
+ has_dlc = "King of Kings"
1127
+ NOT = { map_setup = map_setup_random }
1128
+ }
1129
+ has_country_shield = yes
1130
+
1131
+ ARB_the_harsh_desert = {
1132
+ icon = mission_conquer_air
1133
+ required_missions = { ARB_befriend_local_amirs }
1134
+ position = 2
1135
+ provinces_to_highlight = {
1136
+ owned_by = ROOT
1137
+ has_climate = arid
1138
+ }
1139
+ trigger = {
1140
+ custom_trigger_tooltip = {
1141
+ tooltip = ARB_has_developed_arid_provinces
1142
+ check_variable = {
1143
+ which = num_of_times_developed_arid
1144
+ value = 20
1145
+ }
1146
+ }
1147
+ }
1148
+ effect = {
1149
+ custom_tooltip = ARB_unlock_oasis_development
1150
+ set_country_flag = ARB_unlock_oasis_development_flag
1151
+
1152
+ custom_tooltip = " "
1153
+
1154
+ change_estate_land_share = {
1155
+ estate = all
1156
+ share = -5
1157
+ }
1158
+ }
1159
+ }
1160
+
1161
+ ARB_rulers_of_the_highlands = {
1162
+ icon = mission_cope_with_refugees
1163
+ required_missions = { ARB_tribal_feuds }
1164
+ position = 3
1165
+ provinces_to_highlight = {
1166
+ OR = {
1167
+ area = nafud_area
1168
+ area = yamamah_area
1169
+ area = qasim_area
1170
+ }
1171
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1172
+ }
1173
+ trigger = {
1174
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1175
+ OR = {
1176
+ area = nafud_area
1177
+ area = yamamah_area
1178
+ area = qasim_area
1179
+ }
1180
+ value = 8
1181
+ }
1182
+ }
1183
+ effect = {
1184
+ if = {
1185
+ limit = {
1186
+ has_government_mechanic = tribal_federation_mechanic
1187
+ }
1188
+ add_government_power = {
1189
+ mechanic_type = tribal_federation_mechanic
1190
+ power_type = tribal_allegiance
1191
+ value = 30
1192
+ }
1193
+
1194
+ custom_tooltip = " "
1195
+ }
1196
+
1197
+ add_country_modifier = {
1198
+ name = ARB_allegiance_of_the_oases
1199
+ duration = 10950
1200
+ }
1201
+
1202
+ bahrain_area = {
1203
+ limit = {
1204
+ NOT = { is_core = ROOT }
1205
+ NOT = { is_permanent_claim = ROOT }
1206
+ }
1207
+ add_permanent_claim = ROOT
1208
+ }
1209
+ pirate_coast_area = {
1210
+ limit = {
1211
+ NOT = { is_core = ROOT }
1212
+ NOT = { is_permanent_claim = ROOT }
1213
+ }
1214
+ add_permanent_claim = ROOT
1215
+ }
1216
+ oman_area = {
1217
+ limit = {
1218
+ NOT = { is_core = ROOT }
1219
+ NOT = { is_permanent_claim = ROOT }
1220
+ }
1221
+ add_permanent_claim = ROOT
1222
+ }
1223
+ mascat_area = {
1224
+ limit = {
1225
+ NOT = { is_core = ROOT }
1226
+ NOT = { is_permanent_claim = ROOT }
1227
+ }
1228
+ add_permanent_claim = ROOT
1229
+ }
1230
+ dhofar_area = {
1231
+ limit = {
1232
+ NOT = { is_core = ROOT }
1233
+ NOT = { is_permanent_claim = ROOT }
1234
+ }
1235
+ add_permanent_claim = ROOT
1236
+ }
1237
+ mogostan_area = {
1238
+ limit = {
1239
+ NOT = { is_core = ROOT }
1240
+ NOT = { is_permanent_claim = ROOT }
1241
+ }
1242
+ add_permanent_claim = ROOT
1243
+ }
1244
+ }
1245
+ }
1246
+
1247
+ ARB_wealth_and_power = {
1248
+ icon = mission_dharma_mission_arabian_trade
1249
+ required_missions = { ARB_rulers_of_the_highlands ARB_al_haasa }
1250
+ position = 5
1251
+ provinces_to_highlight = {
1252
+ OR = {
1253
+ area = mascat_area
1254
+ area = dhofar_area
1255
+ area = mogostan_area
1256
+ area = oman_area
1257
+ }
1258
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1259
+ }
1260
+ trigger = {
1261
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1262
+ OR = {
1263
+ area = mascat_area
1264
+ area = dhofar_area
1265
+ area = mogostan_area #exclude from the desired value, ideally
1266
+ area = oman_area
1267
+ }
1268
+ value = 8
1269
+ }
1270
+ }
1271
+ effect = {
1272
+ add_years_of_income = 1
1273
+
1274
+ custom_tooltip = " "
1275
+
1276
+ add_mercantilism = 3
1277
+
1278
+ custom_tooltip = " "
1279
+
1280
+ define_advisor = {
1281
+ type = trader
1282
+ skill = 2
1283
+ culture = gulf_arabic
1284
+ religion = ROOT
1285
+ cost_multiplier = 0.5
1286
+ }
1287
+ }
1288
+ }
1289
+
1290
+ ARB_protect_caravans = {
1291
+ icon = mission_conquer_timbuktu
1292
+ required_missions = { ARB_city_among_the_dunes }
1293
+ position = 7
1294
+ provinces_to_highlight = {
1295
+ }
1296
+ trigger = {
1297
+ stability = 2
1298
+ OR = {
1299
+ any_owned_province = {
1300
+ has_fort_building_trigger = yes
1301
+ }
1302
+ stability = 3
1303
+ }
1304
+ }
1305
+ effect = {
1306
+ add_country_modifier = {
1307
+ name = ABR_safety_for_the_caravans
1308
+ duration = 9125
1309
+ }
1310
+
1311
+ home_trade_node_effect_scope = {
1312
+ add_trade_modifier = {
1313
+ who = ROOT
1314
+ duration = -1
1315
+ power = 50
1316
+ key = ABR_caravans
1317
+ }
1318
+ }
1319
+ }
1320
+ }
1321
+ }
1322
+
1323
+ KoK_ARB_hedjaz_najd_bedouin_5 = {
1324
+ slot = 5
1325
+ generic = no
1326
+ ai = yes
1327
+ potential_on_load = {
1328
+ has_dlc = "King of Kings"
1329
+ }
1330
+ potential = {
1331
+ ARB_hedjaz_najd_bedouin_potential = yes
1332
+ has_dlc = "King of Kings"
1333
+ NOT = { map_setup = map_setup_random }
1334
+ }
1335
+ has_country_shield = yes
1336
+
1337
+ ARB_befriend_local_amirs = {
1338
+ icon = mission_friends_or_enemies
1339
+ required_missions = { }
1340
+ position = 1
1341
+ provinces_to_highlight = {
1342
+ }
1343
+ trigger = {
1344
+ if = {
1345
+ limit = {
1346
+ has_government_mechanic = tribal_federation_mechanic
1347
+ }
1348
+ has_government_power = {
1349
+ mechanic_type = tribal_federation_mechanic
1350
+ power_type = tribal_allegiance
1351
+ value = 35
1352
+ }
1353
+ }
1354
+ else = {
1355
+ NOT = { unrest = -2 }
1356
+ }
1357
+
1358
+ if = {
1359
+ limit = {
1360
+ has_estate = estate_nobles
1361
+ }
1362
+ estate_loyalty = {
1363
+ estate = estate_nobles
1364
+ loyalty = 60
1365
+ }
1366
+ }
1367
+ has_dip_advisor = yes
1368
+ }
1369
+ effect = {
1370
+ add_yearly_manpower = 1
1371
+
1372
+ custom_tooltip = " "
1373
+
1374
+ if = {
1375
+ limit = {
1376
+ has_government_mechanic = tribal_federation_mechanic
1377
+ }
1378
+ country_event_with_option_insight = {
1379
+ id = flavor_ARB.1
1380
+ option_1 = "
1381
+ custom_tooltip = ARB_upgrade_enlist_general
1382
+
1383
+ custom_tooltip = \" \"
1384
+
1385
+ add_adm_power = 50
1386
+ "
1387
+ option_2 = "
1388
+ custom_tooltip = ARB_upgrade_train_horsemanship
1389
+
1390
+ custom_tooltip = \" \"
1391
+
1392
+ add_dip_power = 50
1393
+ "
1394
+ option_3 = "
1395
+ custom_tooltip = ARB_upgrade_conscript_from_the_tribes
1396
+
1397
+ custom_tooltip = \" \"
1398
+
1399
+ add_mil_power = 50
1400
+ "
1401
+ }
1402
+ }
1403
+ else = {
1404
+ add_country_modifier = {
1405
+ name = ARB_support_of_local_sheikhs
1406
+ duration = -1
1407
+ }
1408
+ }
1409
+
1410
+ give_claims = { area = khuzestan_area }
1411
+ give_claims = { area = shahrizor_area }
1412
+ }
1413
+ }
1414
+
1415
+ ARB_al_haasa = {
1416
+ icon = mission_conquer_tunisia
1417
+ required_missions = { ARB_rulers_of_the_highlands }
1418
+ position = 4
1419
+ provinces_to_highlight = {
1420
+ OR = {
1421
+ AND = {
1422
+ OR = {
1423
+ area = bahrain_area
1424
+ area = pirate_coast_area
1425
+ }
1426
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1427
+ }
1428
+ AND = {
1429
+ province_id = 394
1430
+ NOT = { owned_by = root }
1431
+ }
1432
+ }
1433
+ }
1434
+ trigger = {
1435
+ owns = 394
1436
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1437
+ OR = {
1438
+ area = bahrain_area
1439
+ area = pirate_coast_area
1440
+ }
1441
+ value = 5
1442
+ }
1443
+ }
1444
+ effect = {
1445
+ if = {
1446
+ limit = {
1447
+ has_government_mechanic = tribal_federation_mechanic
1448
+ }
1449
+ add_government_power = {
1450
+ mechanic_type = tribal_federation_mechanic
1451
+ power_type = tribal_allegiance
1452
+ value = 30
1453
+ }
1454
+
1455
+ custom_tooltip = " "
1456
+ }
1457
+
1458
+ add_army_tradition_or_mil_power = { amount = 10 }
1459
+
1460
+ custom_tooltip = " "
1461
+
1462
+ 394 = {
1463
+ add_unit_construction = {
1464
+ type = light_ship
1465
+ amount = 2
1466
+ speed = 0.1
1467
+ cost = 0
1468
+ }
1469
+ add_unit_construction = {
1470
+ type = transport
1471
+ amount = 3
1472
+ speed = 0.1
1473
+ cost = 0
1474
+ }
1475
+ add_unit_construction = {
1476
+ type = galley
1477
+ amount = 2
1478
+ speed = 0.1
1479
+ cost = 0
1480
+ }
1481
+ }
1482
+
1483
+ custom_tooltip = " "
1484
+
1485
+ al_jazira_area = {
1486
+ limit = {
1487
+ NOT = { is_core = ROOT }
1488
+ NOT = { is_permanent_claim = ROOT }
1489
+ }
1490
+ add_permanent_claim = ROOT
1491
+ }
1492
+ iraq_arabi_area = {
1493
+ limit = {
1494
+ NOT = { is_core = ROOT }
1495
+ NOT = { is_permanent_claim = ROOT }
1496
+ }
1497
+ add_permanent_claim = ROOT
1498
+ }
1499
+ basra_area = {
1500
+ limit = {
1501
+ NOT = { is_core = ROOT }
1502
+ NOT = { is_permanent_claim = ROOT }
1503
+ }
1504
+ add_permanent_claim = ROOT
1505
+ }
1506
+ }
1507
+ }
1508
+
1509
+ ARB_abbasid_legacy = {
1510
+ icon = found_the_vatican_library
1511
+ required_missions = { ARB_al_haasa }
1512
+ position = 5
1513
+ provinces_to_highlight = {
1514
+ OR = {
1515
+ area = basra_area
1516
+ area = iraq_arabi_area
1517
+ area = al_jazira_area
1518
+ }
1519
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1520
+ }
1521
+ trigger = {
1522
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1523
+ OR = {
1524
+ area = basra_area
1525
+ area = iraq_arabi_area
1526
+ area = al_jazira_area
1527
+ }
1528
+ value = 11
1529
+ }
1530
+ 410 = { country_or_non_sovereign_subject_holds = ROOT } #Baghdad
1531
+ }
1532
+ effect = {
1533
+ country_event_with_option_insight = {
1534
+ id = flavor_ARB.2
1535
+ option_1 = "
1536
+ define_advisor = {
1537
+ type = natural_scientist
1538
+ skill = 2
1539
+ culture = al_iraqiya_arabic
1540
+ religion = ROOT
1541
+ cost_multiplier = 0.5
1542
+ }
1543
+ custom_tooltip = \" \"
1544
+ if = {
1545
+ limit = { has_dlc = \"Rule Britannia\" }
1546
+ change_innovativeness = 3
1547
+ }
1548
+ else = {
1549
+ add_adm_power = 25
1550
+ add_dip_power = 25
1551
+ add_mil_power = 25
1552
+ }
1553
+ "
1554
+ option_2 = "
1555
+ define_advisor = {
1556
+ type = theologian
1557
+ skill = 2
1558
+ culture = al_iraqiya_arabic
1559
+ religion = ROOT
1560
+ cost_multiplier = 0.5
1561
+ }
1562
+
1563
+ custom_tooltip = \" \"
1564
+
1565
+ add_adm_power = 75
1566
+ "
1567
+ option_3 = "
1568
+ define_advisor = {
1569
+ type = philosopher
1570
+ skill = 2
1571
+ culture = al_iraqiya_arabic
1572
+ religion = ROOT
1573
+ cost_multiplier = 0.25
1574
+ }
1575
+
1576
+ custom_tooltip = \" \"
1577
+
1578
+ add_dip_power = 75
1579
+ "
1580
+ }
1581
+ }
1582
+ }
1583
+
1584
+ ARB_city_among_the_dunes = {
1585
+ icon = mission_conquer_algiers
1586
+ required_missions = { }
1587
+ position = 6
1588
+ provinces_to_highlight = {
1589
+ province_id = 392
1590
+ OR = {
1591
+ NOT = { owned_by = ROOT }
1592
+ NOT = { development = 10 }
1593
+ }
1594
+ }
1595
+ trigger = {
1596
+ 392 = {
1597
+ owned_by = ROOT
1598
+ development = 10
1599
+ }
1600
+ }
1601
+ effect = {
1602
+ 392 = {
1603
+ change_province_name = "Diriyah"
1604
+
1605
+ custom_tooltip = " "
1606
+
1607
+ add_province_modifier = {
1608
+ name = ARB_oasis_city_on_stop_to_mecca
1609
+ duration = -1
1610
+ }
1611
+ }
1612
+
1613
+ custom_tooltip = " "
1614
+
1615
+ add_years_of_income = 1
1616
+ }
1617
+ }
1618
+
1619
+ ARB_madrassa = {
1620
+ icon = mission_gawans_madrasar
1621
+ required_missions = { ARB_city_among_the_dunes }
1622
+ position = 7
1623
+ provinces_to_highlight = {
1624
+ owned_by = ROOT
1625
+ development = 15
1626
+ NOT = { has_tax_building_trigger = yes }
1627
+ }
1628
+ trigger = {
1629
+ any_owned_province = {
1630
+ has_tax_building_trigger = yes
1631
+ development = 15
1632
+ }
1633
+
1634
+ if = {
1635
+ limit = {
1636
+ has_estate = estate_church
1637
+ }
1638
+ estate_loyalty = {
1639
+ estate = estate_church
1640
+ loyalty = 60
1641
+ }
1642
+ }
1643
+ }
1644
+ effect = {
1645
+ custom_tooltip = ARB_most_developed_province
1646
+ tooltip = {
1647
+ capital_scope = { add_or_upgrade_tax_building = yes }
1648
+
1649
+ custom_tooltip = " "
1650
+
1651
+ capital_scope = { #capital_scope because it doesn't show up otherwise
1652
+ add_province_triggered_modifier = ARB_local_madrasa
1653
+ }
1654
+ }
1655
+ hidden_effect = {
1656
+ country_event = { id = flavor_ARB.9 }
1657
+ }
1658
+ }
1659
+ }
1660
+
1661
+ ARB_riyadh = {
1662
+ icon = arb_riyadh
1663
+ required_missions = { ARB_madrassa ARB_protect_caravans }
1664
+ position = 8
1665
+ provinces_to_highlight = {
1666
+ province_id = 392
1667
+ OR = {
1668
+ NOT = { owned_by = ROOT }
1669
+ NOT = { development = 25 }
1670
+ NOT = { num_of_buildings_in_province = 5 }
1671
+ }
1672
+ }
1673
+ trigger = {
1674
+ 392 = {
1675
+ owned_by = ROOT
1676
+ development = 25
1677
+ num_of_buildings_in_province = 5
1678
+ }
1679
+ }
1680
+ effect = {
1681
+ 392 = {
1682
+ change_province_name = "Riyadh"
1683
+
1684
+ custom_tooltip = " "
1685
+
1686
+ custom_tooltip = ARB_upgrade_oasis_city
1687
+ hidden_effect = {
1688
+ remove_province_modifier = ARB_oasis_city_on_stop_to_mecca
1689
+ add_province_modifier = {
1690
+ name = ARB_oasis_city_on_stop_to_mecca_2
1691
+ duration = -1
1692
+ }
1693
+ }
1694
+ }
1695
+
1696
+ custom_tooltip = " "
1697
+
1698
+ set_country_flag = ARB_upgrade_invite_minorities_flag
1699
+ custom_tooltip = ARB_upgrade_invite_minorities
1700
+ }
1701
+ }
1702
+ }
1703
+
1704
+ KoK_ARB_hedjaz_najd_bedouin_arb_1 = {
1705
+ slot = 1
1706
+ generic = no
1707
+ ai = yes
1708
+ potential_on_load = {
1709
+ has_dlc = "King of Kings"
1710
+ }
1711
+ potential = {
1712
+ ARB_hedjaz_najd_bedouin_potential = yes
1713
+ has_dlc = "King of Kings"
1714
+ NOT = { map_setup = map_setup_random }
1715
+ }
1716
+ has_country_shield = yes
1717
+
1718
+ ARB_across_the_strait = {
1719
+ icon = mission_reclaim_andalucia
1720
+ required_missions = { ARB_maghreb }
1721
+ position = 10
1722
+ provinces_to_highlight = {
1723
+ region = iberia_region
1724
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1725
+ }
1726
+ trigger = {
1727
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1728
+ region = iberia_region
1729
+ value = 20
1730
+ }
1731
+ 223 = { country_or_non_sovereign_subject_holds = ROOT } #granada
1732
+ 225 = { country_or_non_sovereign_subject_holds = ROOT } #cordoba
1733
+ }
1734
+ effect = {
1735
+ create_general = { tradition = 80 }
1736
+
1737
+ custom_tooltip = " "
1738
+
1739
+ if = {
1740
+ limit = {
1741
+ has_dlc = "Leviathan"
1742
+ }
1743
+ custom_tooltip = ARB_upgrade_alhambra
1744
+ custom_tooltip = " "
1745
+ }
1746
+ else = {
1747
+ 223 = {
1748
+ add_province_modifier = {
1749
+ name = ARB_alhambra_diplo_annex_cost
1750
+ duration = -1
1751
+ }
1752
+ }
1753
+ }
1754
+
1755
+ 225 = {
1756
+ add_province_modifier = {
1757
+ name = ARB_rekindling_the_flames
1758
+ duration = 10950
1759
+ }
1760
+ }
1761
+
1762
+ give_claims = { area = languedoc_area }
1763
+ give_claims = { area = guyenne_area }
1764
+ give_claims = { area = pyrenees_area }
1765
+ }
1766
+ }
1767
+
1768
+ ARB_tours = {
1769
+ icon = mission_the_french_menace
1770
+ required_missions = { ARB_across_the_strait }
1771
+ position = 11
1772
+ provinces_to_highlight = {
1773
+ region = france_region
1774
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1775
+ }
1776
+ trigger = {
1777
+ OR = {
1778
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1779
+ region = france_region
1780
+ value = 10
1781
+ }
1782
+ custom_trigger_tooltip = {
1783
+ tooltip = ARB_has_won_war_against_a_powerful_country_in_france
1784
+ france_region = {
1785
+ owner = {
1786
+ total_development = 400
1787
+ ROOT = {
1788
+ has_won_war_against = {
1789
+ who = PREV
1790
+ max_years_since = 15
1791
+ }
1792
+ }
1793
+ }
1794
+ }
1795
+ }
1796
+ }
1797
+ }
1798
+ effect = {
1799
+ country_event_with_effect_insight = {
1800
+ id = flavor_ARB.7
1801
+ effect = "
1802
+ add_permanent_power_projection = {
1803
+ type = arb_permanent_power_projection
1804
+ amount = 5
1805
+ }
1806
+ custom_tooltip = \" \"
1807
+ add_country_modifier = {
1808
+ name = ARB_highway_of_the_martyrs
1809
+ duration = -1
1810
+ }
1811
+ custom_tooltip = ARB_cb_on_france_and_iberia
1812
+ "
1813
+ }
1814
+ }
1815
+ }
1816
+ }
1817
+
1818
+ KoK_ARB_hedjaz_najd_bedouin_arb_2 = {
1819
+ slot = 2
1820
+ generic = no
1821
+ ai = yes
1822
+ potential_on_load = {
1823
+ has_dlc = "King of Kings"
1824
+ }
1825
+ potential = {
1826
+ ARB_hedjaz_najd_bedouin_potential = yes
1827
+ has_dlc = "King of Kings"
1828
+ NOT = { map_setup = map_setup_random }
1829
+ }
1830
+ has_country_shield = yes
1831
+
1832
+ ARB_maghreb = {
1833
+ icon = mission_conquer_tunis
1834
+ required_missions = { ARB_caliphal_ambitions }
1835
+ position = 9
1836
+ provinces_to_highlight = {
1837
+ region = maghreb_region
1838
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1839
+ }
1840
+ trigger = {
1841
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1842
+ region = maghreb_region
1843
+ value = 30
1844
+ }
1845
+ 4566 = { country_or_non_sovereign_subject_holds = ROOT }
1846
+ }
1847
+ effect = {
1848
+ give_claims = { area = sicily_area }
1849
+ give_claims = { area = western_sicily_area }
1850
+ give_claims = { region = iberia_region }
1851
+
1852
+ custom_tooltip = " "
1853
+
1854
+ if = {
1855
+ limit = {
1856
+ has_dlc = "Leviathan"
1857
+ }
1858
+ custom_tooltip = ARB_upgrade_mosque_of_kairouan
1859
+ }
1860
+ else = {
1861
+ 4566 = {
1862
+ add_province_triggered_modifier = ARB_mosque_of_kairouan
1863
+ }
1864
+ }
1865
+ }
1866
+ }
1867
+
1868
+ ARB_sicily = {
1869
+ icon = arb_sicily
1870
+ required_missions = { ARB_maghreb }
1871
+ position = 11
1872
+ provinces_to_highlight = {
1873
+ OR = {
1874
+ area = sicily_area
1875
+ area = western_sicily_area
1876
+ }
1877
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1878
+ }
1879
+ trigger = {
1880
+ sicily_area = {
1881
+ country_or_non_sovereign_subject_holds = ROOT
1882
+ type = all
1883
+ }
1884
+ western_sicily_area = {
1885
+ country_or_non_sovereign_subject_holds = ROOT
1886
+ type = all
1887
+ }
1888
+ }
1889
+ effect = {
1890
+ custom_tooltip = ARB_religious_cb_against_italians
1891
+
1892
+ custom_tooltip = " "
1893
+
1894
+ add_power_projection_mission = { amount = 20 }
1895
+
1896
+ custom_tooltip = " "
1897
+
1898
+ add_country_modifier = {
1899
+ name = ARB_reconquest_of_sicily
1900
+ duration = 10950
1901
+ }
1902
+ }
1903
+ }
1904
+ }
1905
+
1906
+ KoK_ARB_hedjaz_najd_bedouin_arb_3 = {
1907
+ slot = 3
1908
+ generic = no
1909
+ ai = yes
1910
+ potential_on_load = {
1911
+ has_dlc = "King of Kings"
1912
+ }
1913
+ potential = {
1914
+ ARB_hedjaz_najd_bedouin_potential = yes
1915
+ has_dlc = "King of Kings"
1916
+ NOT = { map_setup = map_setup_random }
1917
+ }
1918
+ has_country_shield = yes
1919
+
1920
+ ARB_caliphal_ambitions = {
1921
+ icon = mission_restore_caliphate_of_cordoba
1922
+ required_missions = { ARB_unite_arabia }
1923
+ position = 8
1924
+ provinces_to_highlight = {
1925
+ owned_by = ROOT
1926
+ NOT = { religion_group = muslim }
1927
+ }
1928
+ trigger = {
1929
+ tag = ARB
1930
+ total_development = 600
1931
+ num_of_owned_provinces_with = {
1932
+ religion_group = muslim
1933
+ value = 50
1934
+ }
1935
+ }
1936
+ effect = {
1937
+ country_event_with_effect_insight = {
1938
+ id = flavor_ARB.5
1939
+ effect = "
1940
+ unlock_government_reform = {
1941
+ government_reform = caliphate_reform
1942
+ }
1943
+ "
1944
+ }
1945
+
1946
+ custom_tooltip = " "
1947
+
1948
+ give_claims = { region = maghreb_region }
1949
+
1950
+ give_claims = { area = dulkadir_area }
1951
+ give_claims = { area = rum_area }
1952
+ give_claims = { area = karaman_area }
1953
+ give_claims = { area = cukurova_area }
1954
+
1955
+ give_claims = { region = horn_of_africa_region }
1956
+ give_claims = { region = east_africa_region }
1957
+ }
1958
+ }
1959
+
1960
+ ARB_zanzibari_trade = {
1961
+ icon = mission_african_gold
1962
+ required_missions = { ARB_caliphal_ambitions }
1963
+ position = 10
1964
+ provinces_to_highlight = {
1965
+ OR = {
1966
+ region = east_africa_region
1967
+ region = horn_of_africa_region
1968
+ }
1969
+ religion_group = muslim
1970
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1971
+ }
1972
+ trigger = {
1973
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1974
+ OR = {
1975
+ region = east_africa_region
1976
+ region = horn_of_africa_region
1977
+ }
1978
+ religion_group = muslim
1979
+ value = 50
1980
+ }
1981
+ }
1982
+ effect = {
1983
+ add_years_of_income = 1
1984
+
1985
+ custom_tooltip = " "
1986
+
1987
+ add_dip_power = 100
1988
+
1989
+ custom_tooltip = " "
1990
+
1991
+ country_event_with_option_insight = {
1992
+ id = flavor_ARB.8
1993
+ option_1 = "
1994
+ add_country_modifier = {
1995
+ name = ARB_reroute_the_trade_north
1996
+ duration = -1
1997
+ }
1998
+ "
1999
+ option_2 = "
2000
+ custom_tooltip = ARB_cb_on_fetishists_in_south_africa
2001
+ "
2002
+ }
2003
+ }
2004
+ }
2005
+
2006
+ ARB_rightly_guided = {
2007
+ icon = mission_fatimid_caliphate
2008
+ required_missions = { ARB_beyond_solomons ARB_zanzibari_trade ARB_ottomans ARB_sicily ARB_tours }
2009
+ position = 12
2010
+ provinces_to_highlight = {
2011
+ owned_by = ROOT
2012
+ NOT = { religion_group = muslim }
2013
+ }
2014
+ trigger = {
2015
+ army_size = 500
2016
+ monthly_income = 500
2017
+ num_of_owned_provinces_with = {
2018
+ religion_group = muslim
2019
+ value = 500
2020
+ }
2021
+ if = {
2022
+ limit = {
2023
+ has_dlc = "Star and Crescent"
2024
+ }
2025
+ custom_trigger_tooltip = {
2026
+ tooltip = ARB_islam_has_been_united
2027
+ has_global_flag = unified_islam_global
2028
+ }
2029
+ }
2030
+
2031
+ if = {
2032
+ limit = {
2033
+ has_dlc = "Mandate of Heaven"
2034
+ }
2035
+ OR = {
2036
+ in_golden_age = yes
2037
+ has_had_golden_age = yes
2038
+ }
2039
+ }
2040
+ }
2041
+ effect = {
2042
+ country_event_with_effect_insight = {
2043
+ id = flavor_ARB.6
2044
+ effect = "ARB_flavor_event_6_effect = yes"
2045
+ }
2046
+ }
2047
+ }
2048
+ }
2049
+
2050
+ KoK_ARB_hedjaz_najd_bedouin_arb_4 = {
2051
+ slot = 4
2052
+ generic = no
2053
+ ai = yes
2054
+ potential_on_load = {
2055
+ has_dlc = "King of Kings"
2056
+ }
2057
+ potential = {
2058
+ ARB_hedjaz_najd_bedouin_potential = yes
2059
+ has_dlc = "King of Kings"
2060
+ NOT = { map_setup = map_setup_random }
2061
+ }
2062
+ has_country_shield = yes
2063
+
2064
+ ARB_north = {
2065
+ icon = mission_pacify_the_berbers
2066
+ required_missions = { ARB_caliphal_ambitions }
2067
+ position = 9
2068
+ provinces_to_highlight = {
2069
+ OR = {
2070
+ area = north_kurdistan_area
2071
+ area = dulkadir_area
2072
+ area = rum_area
2073
+ area = karaman_area
2074
+ area = cukurova_area
2075
+ area = shahrizor_area
2076
+ area = tabriz_area
2077
+ }
2078
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2079
+ }
2080
+ trigger = {
2081
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2082
+ OR = {
2083
+ area = north_kurdistan_area
2084
+ area = dulkadir_area
2085
+ area = rum_area
2086
+ area = karaman_area
2087
+ area = cukurova_area
2088
+ area = shahrizor_area
2089
+ area = tabriz_area
2090
+ }
2091
+ value = 19
2092
+ }
2093
+ }
2094
+ effect = {
2095
+ give_claims = { region = khorasan_region }
2096
+ give_claims = { region = persia_region }
2097
+ give_claims = { region = anatolia_region }
2098
+ give_claims = { area = thrace_area }
2099
+
2100
+ custom_tooltip = " "
2101
+
2102
+ add_country_modifier = {
2103
+ name = ARB_the_caliphate_rises
2104
+ duration = -1
2105
+ }
2106
+ }
2107
+ }
2108
+
2109
+ ARB_ottomans = {
2110
+ icon = mission_ottoman_diplomacy
2111
+ required_missions = { ARB_north }
2112
+ position = 11
2113
+ provinces_to_highlight = {
2114
+ OR = {
2115
+ region = anatolia_region
2116
+ area = thrace_area
2117
+ }
2118
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2119
+ }
2120
+ trigger = {
2121
+ if = {
2122
+ limit = {
2123
+ exists = TUR
2124
+ }
2125
+ has_won_war_against = { who = TUR max_years_since = 25 }
2126
+ }
2127
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2128
+ OR = {
2129
+ region = anatolia_region
2130
+ area = thrace_area
2131
+ }
2132
+ value = 45
2133
+ }
2134
+ }
2135
+ effect = {
2136
+ add_permanent_power_projection = {
2137
+ type = arb_permanent_power_projection
2138
+ amount = 5
2139
+ }
2140
+
2141
+ custom_tooltip = " "
2142
+
2143
+ add_mil_power = 150
2144
+
2145
+ custom_tooltip = " "
2146
+
2147
+ add_country_modifier = {
2148
+ name = ARB_only_rightful_caliphs
2149
+ duration = 14600
2150
+ }
2151
+
2152
+ custom_tooltip = ARB_cb_balkans
2153
+ }
2154
+ }
2155
+ }
2156
+
2157
+ KoK_ARB_hedjaz_najd_bedouin_arb_5 = {
2158
+ slot = 5
2159
+ generic = no
2160
+ ai = yes
2161
+ potential_on_load = {
2162
+ has_dlc = "King of Kings"
2163
+ }
2164
+ potential = {
2165
+ ARB_hedjaz_najd_bedouin_potential = yes
2166
+ has_dlc = "King of Kings"
2167
+ NOT = { map_setup = map_setup_random }
2168
+ }
2169
+ has_country_shield = yes
2170
+
2171
+ ARB_persia = {
2172
+ icon = mission_into_persia_2
2173
+ required_missions = { ARB_north }
2174
+ position = 10
2175
+ provinces_to_highlight = {
2176
+ OR = {
2177
+ region = khorasan_region
2178
+ region = persia_region
2179
+ }
2180
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2181
+ }
2182
+ trigger = {
2183
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2184
+ OR = {
2185
+ region = khorasan_region
2186
+ region = persia_region
2187
+ }
2188
+ value = 40
2189
+ }
2190
+ }
2191
+ effect = {
2192
+ if = {
2193
+ limit = {
2194
+ religion = shiite
2195
+ }
2196
+ add_country_modifier = {
2197
+ name = ARB_reconnected_with_shiite_stronghold
2198
+ duration = 14600
2199
+ }
2200
+ }
2201
+ else = {
2202
+ add_country_modifier = {
2203
+ name = ARB_conquered_the_shiite_stronghold
2204
+ duration = 14600
2205
+ }
2206
+ }
2207
+
2208
+ add_army_tradition_or_mil_power = { amount = 10 }
2209
+
2210
+ custom_tooltip = " "
2211
+
2212
+ add_country_modifier = {
2213
+ name = ARB_eastern_flank
2214
+ duration = 9125
2215
+ }
2216
+ }
2217
+ }
2218
+
2219
+ ARB_beyond_solomons = {
2220
+ icon = mission_fortify_rajputana
2221
+ required_missions = { ARB_persia }
2222
+ position = 11
2223
+ provinces_to_highlight = {
2224
+ OR = {
2225
+ superregion = india_superregion
2226
+ superregion = east_indies_superregion
2227
+ }
2228
+ religion_group = muslim
2229
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2230
+ }
2231
+ trigger = {
2232
+ OR = {
2233
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2234
+ religion_group = muslim
2235
+ OR = {
2236
+ superregion = india_superregion
2237
+ superregion = east_indies_superregion
2238
+ }
2239
+ value = 15
2240
+ }
2241
+ }
2242
+ }
2243
+ effect = {
2244
+ if = {
2245
+ limit = {
2246
+ has_dlc = "Cradle of Civilization"
2247
+ }
2248
+ custom_tooltip = ARB_upgrade_propagate_religion
2249
+ set_country_flag = 40_trade_power_for_propogate_religion
2250
+ }
2251
+ else = {
2252
+ custom_tooltip = ARB_upgrade_trade_ship_privilege_for_trade_power_propagation
2253
+ set_country_flag = ARB_upgrade_trade_ship_privilege_for_trade_steering_flag
2254
+ }
2255
+
2256
+ custom_tooltip = " "
2257
+
2258
+ add_country_modifier = {
2259
+ name = ARB_supporting_islam_in_indian_realm
2260
+ duration = -1
2261
+ }
2262
+ }
2263
+ }
2264
+ }
missions/KoK_Ardabil_Missions.txt ADDED
@@ -0,0 +1,457 @@
1
+ ardabil_missions_1 = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ tag = ARL
10
+ NOT = { map_setup = map_setup_random }
11
+ has_dlc = "King of Kings"
12
+ }
13
+ has_country_shield = yes
14
+
15
+ arl_expand_country_mission = {
16
+ icon = mission_unite_west_india
17
+ required_missions = { arl_build_army_mission }
18
+ position = 2
19
+ trigger = { grown_by_development = 50 }
20
+ effect = {
21
+ capital_scope = {
22
+ area = {
23
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
24
+ add_base_tax = 1
25
+ add_base_production = 1
26
+ add_base_manpower = 1
27
+ add_province_modifier = {
28
+ name = "growth_of_capital"
29
+ duration = 9125 #25 years
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ arl_conquer_states = {
37
+ icon = mission_gharbianss
38
+ required_missions = { arl_expand_country_mission }
39
+ position = 3
40
+ trigger = { grown_by_states = 4 }
41
+ effect = {
42
+ add_country_modifier = {
43
+ name = "expansionist_country"
44
+ duration = 9125 #25 years
45
+ }
46
+ if = {
47
+ limit = {
48
+ has_dlc = "Rights of Man"
49
+ NOT = { num_of_ruler_traits = { amount = 3 } }
50
+ }
51
+ add_ruler_personality = conqueror_personality
52
+ }
53
+ else = { add_mil_power = 50 }
54
+ }
55
+ }
56
+ }
57
+
58
+ ardabil_missions_2 = {
59
+ slot = 2
60
+ generic = no
61
+ ai = yes
62
+ potential_on_load = {
63
+ has_dlc = "King of Kings"
64
+ }
65
+ potential = {
66
+ tag = ARL
67
+ NOT = { map_setup = map_setup_random }
68
+ has_dlc = "King of Kings"
69
+ }
70
+ has_country_shield = yes
71
+
72
+ arl_build_army_mission = {
73
+ icon = mission_unite_the_deccan
74
+ required_missions = { }
75
+ position = 1
76
+ trigger = {
77
+ army_size_percentage = 1
78
+ }
79
+ effect = {
80
+ add_country_modifier = {
81
+ name = "thriving_arms_industry"
82
+ duration = 9125
83
+ }
84
+ tabriz_area = {
85
+ limit = {
86
+ NOT = { is_core = ROOT }
87
+ NOT = { is_permanent_claim = ROOT }
88
+ }
89
+ add_permanent_claim = ROOT
90
+ }
91
+ shirvan_area = {
92
+ limit = {
93
+ NOT = { is_core = ROOT }
94
+ NOT = { is_permanent_claim = ROOT }
95
+ }
96
+ add_permanent_claim = ROOT
97
+ }
98
+ }
99
+ }
100
+
101
+ arl_conquer_tabriz = {
102
+ icon = mission_into_persia_1
103
+ required_missions = { arl_build_army_mission }
104
+ position = 2
105
+ provinces_to_highlight = {
106
+ area = tabriz_area
107
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
108
+ }
109
+ trigger = {
110
+ tabriz_area = {
111
+ type = all
112
+ country_or_non_sovereign_subject_holds = ROOT
113
+ }
114
+ }
115
+ effect = {
116
+ 416 = { add_core = ROOT }
117
+ add_war_exhaustion = -2
118
+ }
119
+ }
120
+
121
+ arl_unite_home_region = {
122
+ icon = unite_the_realm
123
+ position = 4
124
+ required_missions = { arl_conquer_states arl_into_persia }
125
+ provinces_to_highlight = {
126
+ region_for_scope_province = {
127
+ is_capital_of = ROOT
128
+ }
129
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
130
+ }
131
+ trigger = {
132
+ custom_trigger_tooltip = {
133
+ tooltip = unite_home_region2_ct
134
+ capital_scope = {
135
+ region_for_scope_province = {
136
+ type = all
137
+ country_or_non_sovereign_subject_holds = ROOT
138
+ }
139
+ }
140
+ }
141
+ }
142
+ effect = {
143
+ add_dip_power = 50
144
+ add_adm_power = 50
145
+ add_mil_power = 50
146
+ add_country_modifier = {
147
+ name = "hegemonic_ambition"
148
+ duration = 9125 #25 years
149
+ }
150
+ add_power_projection = {
151
+ type = mission_rewards_power_projection
152
+ amount = 25
153
+ }
154
+ }
155
+ }
156
+
157
+ }
158
+
159
+ ardabil_missions_3 = {
160
+ slot = 3
161
+ generic = no
162
+ ai = yes
163
+ potential_on_load = {
164
+ has_dlc = "King of Kings"
165
+ }
166
+ potential = {
167
+ tag = ARL
168
+ NOT = { map_setup = map_setup_random }
169
+ has_dlc = "King of Kings"
170
+ }
171
+ has_country_shield = yes
172
+
173
+ arl_into_persia = {
174
+ icon = mission_into_persia_2
175
+ required_missions = { arl_conquer_tabriz arl_conquer_shirvan }
176
+ position = 3
177
+ provinces_to_highlight = {
178
+ region = persia_region
179
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
180
+ }
181
+ trigger = {
182
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
183
+ region = persia_region
184
+ value = 15
185
+ }
186
+ }
187
+ effect = {
188
+ country_event = { id = flavor_per.79 }
189
+
190
+ custom_tooltip = flavor_per.79_tt
191
+ }
192
+ }
193
+ }
194
+
195
+ ardabil_missions_4 = {
196
+ slot = 4
197
+ generic = no
198
+ ai = yes
199
+ potential_on_load = {
200
+ has_dlc = "King of Kings"
201
+ }
202
+ potential = {
203
+ tag = ARL
204
+ NOT = { map_setup = map_setup_random }
205
+ has_dlc = "King of Kings"
206
+ }
207
+ has_country_shield = yes
208
+
209
+ arl_conquer_shirvan = {
210
+ icon = mission_persianate_empire
211
+ required_missions = { arl_build_army_mission }
212
+ position = 2
213
+ provinces_to_highlight = {
214
+ area = shirvan_area
215
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
216
+ }
217
+ trigger = {
218
+ shirvan_area = {
219
+ type = all
220
+ country_or_non_sovereign_subject_holds = ROOT
221
+ }
222
+ }
223
+ effect = {
224
+ add_adm_power = 100
225
+ add_stability_or_adm_power = yes
226
+ }
227
+ }
228
+
229
+ arl_establish_the_safaviyya = {
230
+ icon = mission_spoils_of_war
231
+ required_missions = { arl_conquer_shirvan }
232
+ position = 3
233
+ trigger = {
234
+ capital_scope = {
235
+ has_holy_order_trigger = yes
236
+ }
237
+ }
238
+ effect = {
239
+ if = {
240
+ limit = {
241
+ capital_scope = {
242
+ has_fort_building_trigger = no
243
+ }
244
+ }
245
+ capital_scope = {
246
+ add_latest_building = {
247
+ fort = yes
248
+ builder = ROOT
249
+ }
250
+ }
251
+ }
252
+ else = {
253
+ capital_scope = { add_base_manpower = 2 }
254
+ }
255
+
256
+ if = {
257
+ limit = {
258
+ capital_scope = {
259
+ has_tax_building_trigger = no
260
+ }
261
+ }
262
+ capital_scope = {
263
+ add_latest_building = {
264
+ tax = yes
265
+ builder = ROOT
266
+ }
267
+ }
268
+ }
269
+ else = {
270
+ capital_scope = { add_base_tax = 1 }
271
+ }
272
+ }
273
+ }
274
+
275
+ arl_rise_safavids = {
276
+ icon = mission_persian_lion
277
+ required_missions = { arl_establish_the_safaviyya arl_promote_piety arl_into_persia }
278
+ position = 4
279
+ provinces_to_highlight = {
280
+ region = persia_region
281
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
282
+ }
283
+ trigger = {
284
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
285
+ region = persia_region
286
+ value = 30
287
+ }
288
+ if = {
289
+ limit = {
290
+ OR = {
291
+ has_dlc = "Rights of Man"
292
+ has_dlc = "Emperor"
293
+ }
294
+ }
295
+ is_great_power = yes
296
+ }
297
+ else = {
298
+ total_development = 400
299
+ }
300
+ }
301
+ effect = {
302
+ add_ruler_modifier = {
303
+ name = rise_safavids_modifier
304
+ duration = -1
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+ ardabil_missions_5 = {
311
+ slot = 5
312
+ generic = no
313
+ ai = yes
314
+ potential_on_load = {
315
+ has_dlc = "King of Kings"
316
+ }
317
+ potential = {
318
+ tag = ARL
319
+ NOT = { map_setup = map_setup_random }
320
+ has_dlc = "King of Kings"
321
+ }
322
+ has_country_shield = yes
323
+
324
+ arl_establish_qizilbash = {
325
+ icon = mission_persian_soldiers
326
+ required_missions = { }
327
+ position = 1
328
+ trigger = {
329
+ if = {
330
+ limit = { has_estate = estate_qizilbash }
331
+ has_estate_privilege = estate_qizilbash_establish_the_qizilbash_regiments
332
+ num_of_qizilbash = 3
333
+ }
334
+ else = {
335
+ monthly_mil = 8
336
+ }
337
+ }
338
+ effect = {
339
+ add_army_tradition = 20
340
+ }
341
+ }
342
+
343
+ arl_effective_governance = {
344
+ icon = mission_muslim_administrators
345
+ required_missions = { arl_establish_qizilbash }
346
+ position = 2
347
+ trigger = {
348
+ if = {
349
+ limit = { has_government_mechanic = feudal_theocracy_mechanic }
350
+ custom_trigger_tooltip = {
351
+ tooltip = used_either_feudal_theocracy_buttons_tt
352
+ OR = {
353
+ has_country_modifier = seize_clerical_holdings_modifier
354
+ any_owned_province = {
355
+ has_province_modifier = invite_minorities_modifier
356
+ }
357
+ }
358
+ }
359
+ }
360
+ else = {
361
+ stability = 2
362
+ }
363
+ }
364
+ effect = {
365
+ if = {
366
+ limit = {
367
+ has_government_mechanic = feudal_theocracy_mechanic
368
+ }
369
+ if = {
370
+ limit = {
371
+ has_country_modifier = seize_clerical_holdings_modifier
372
+ }
373
+ custom_tooltip = arl_clerical_reward_yes_tt
374
+ }
375
+ else = { custom_tooltip = arl_clerical_reward_no_tt }
376
+ tooltip = {
377
+ change_estate_land_share = {
378
+ estate = estate_church
379
+ share = -5
380
+ }
381
+ capital_scope = {
382
+ add_base_tax = 1
383
+ }
384
+ }
385
+ if = {
386
+ limit = {
387
+ any_owned_province = {
388
+ has_province_modifier = invite_minorities_modifier
389
+ }
390
+ }
391
+ custom_tooltip = arl_minorities_reward_yes_tt
392
+ }
393
+ else = { custom_tooltip = arl_minorities_reward_no_tt }
394
+ tooltip = {
395
+ capital_scope = {
396
+ add_base_production = 1
397
+ add_base_manpower = 1
398
+ }
399
+ }
400
+ }
401
+ else = {
402
+ change_government_reform_progress = 100
403
+ }
404
+ hidden_effect = {
405
+ if = {
406
+ limit = {
407
+ has_country_modifier = seize_clerical_holdings_modifier
408
+ }
409
+ change_estate_land_share = {
410
+ estate = estate_church
411
+ share = -5
412
+ }
413
+ capital_scope = {
414
+ add_base_tax = 1
415
+ }
416
+ }
417
+ if = {
418
+ limit = {
419
+ any_owned_province = {
420
+ has_province_modifier = invite_minorities_modifier
421
+ }
422
+ }
423
+ capital_scope = {
424
+ add_base_production = 1
425
+ add_base_manpower = 1
426
+ }
427
+ }
428
+ }
429
+ }
430
+ }
431
+
432
+ arl_promote_piety = {
433
+ icon = mission_hands_praying
434
+ required_missions = { arl_effective_governance }
435
+ position = 3
436
+ trigger = {
437
+ if = {
438
+ limit = { has_dlc = "Cradle of Civilization" }
439
+ OR = {
440
+ piety = 0.8
441
+ NOT = { piety = -0.8 }
442
+ }
443
+ }
444
+ else = {
445
+ employed_advisor = { type = inquisitor }
446
+ }
447
+ religious_unity = 0.75
448
+ }
449
+ effect = {
450
+ add_country_modifier = {
451
+ name = arl_pious_conquest_modifier
452
+ duration = 9125
453
+ }
454
+ }
455
+ }
456
+ }
457
+
missions/KoK_Armenian_Missions.txt ADDED
@@ -0,0 +1,1736 @@
1
+ arm_first_branch = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ OR = {
10
+ tag = MLK
11
+ tag = ARM
12
+ }
13
+ NOT = { map_setup = map_setup_random }
14
+ has_dlc = "King of Kings"
15
+ }
16
+ has_country_shield = yes
17
+
18
+ arm_avenge_seljuk_conquest = {
19
+ icon = mission_crush_eyalet_rebellion
20
+ required_missions = { arm_breaking_the_chains }
21
+ position = 2
22
+
23
+ provinces_to_highlight = {
24
+ area = tabriz_area
25
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
26
+ }
27
+
28
+ trigger = {
29
+ tabriz_area = {
30
+ type = all
31
+ country_or_non_sovereign_subject_holds = ROOT
32
+ }
33
+ }
34
+
35
+ effect = {
36
+ persia_region = {
37
+ discover_country = ROOT
38
+ }
39
+ custom_tooltip = arm_lose_ae_tt
40
+ add_country_modifier = {
41
+ name = "arm_dethrone_turkomans"
42
+ duration = 5475
43
+ }
44
+ shahrizor_area = {
45
+ limit = {
46
+ NOT = { is_core = ROOT }
47
+ NOT = { is_permanent_claim = ROOT }
48
+ }
49
+ add_permanent_claim = ROOT
50
+ }
51
+ iraq_arabi_area = {
52
+ limit = {
53
+ NOT = { is_core = ROOT }
54
+ NOT = { is_permanent_claim = ROOT }
55
+ }
56
+ add_permanent_claim = ROOT
57
+ }
58
+ luristan_area = {
59
+ limit = {
60
+ NOT = { is_core = ROOT }
61
+ NOT = { is_permanent_claim = ROOT }
62
+ }
63
+ add_permanent_claim = ROOT
64
+ }
65
+ azerbaijan_area = {
66
+ limit = {
67
+ NOT = { is_core = ROOT }
68
+ NOT = { is_permanent_claim = ROOT }
69
+ }
70
+ add_permanent_claim = ROOT
71
+ }
72
+ hidden_effect = {
73
+ every_neighbor_country = {
74
+ add_aggressive_expansion = {
75
+ who = ROOT
76
+ value = -15
77
+ apply_calc = no
78
+ }
79
+ }
80
+ 4172 = {
81
+ discover_country = ROOT
82
+ }
83
+ 4170 = {
84
+ discover_country = ROOT
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ arm_church_of_the_east = {
91
+ icon = mission_cradle_of_civilization
92
+ required_missions = { arm_avenge_seljuk_conquest }
93
+ position = 4
94
+
95
+ provinces_to_highlight = {
96
+ area = iraq_arabi_area
97
+ OR = {
98
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
99
+ NOT = { religion = ROOT }
100
+ }
101
+ }
102
+
103
+ trigger = {
104
+ iraq_arabi_area = {
105
+ type = all
106
+ country_or_non_sovereign_subject_holds = ROOT
107
+ }
108
+ iraq_arabi_area = {
109
+ type = all
110
+ religion = ROOT
111
+ }
112
+ }
113
+
114
+ effect = {
115
+ if = {
116
+ limit = {
117
+ religion = coptic
118
+ }
119
+ country_event = { id = flavor_arm.2 }
120
+ custom_tooltip = arm_church_east_insight_tt
121
+ }
122
+ else = {
123
+ add_country_modifier = {
124
+ name = "arm_church_east"
125
+ duration = 10950
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ arm_national_awakening = {
132
+ icon = mission_handle_the_streltsy
133
+ required_missions = { }
134
+ position = 5
135
+
136
+ provinces_to_highlight = {
137
+ culture = ROOT
138
+ }
139
+
140
+ trigger = {
141
+ development_in_provinces = {
142
+ value = 80
143
+ culture = ROOT
144
+ }
145
+ }
146
+
147
+ effect = {
148
+ change_government_reform_progress = 50
149
+ add_country_modifier = {
150
+ name = "arm_national_awakening"
151
+ duration = 7300
152
+ }
153
+ if = {
154
+ limit = {
155
+ capital_scope = {
156
+ development = 20
157
+ }
158
+ }
159
+ custom_tooltip = arm_capital_cot_tt_yes
160
+ }
161
+ else = {
162
+ custom_tooltip = arm_capital_cot_tt_no
163
+ }
164
+ hidden_effect = {
165
+ if = {
166
+ limit = {
167
+ capital_scope = {
168
+ development = 20
169
+ }
170
+ }
171
+ if = {
172
+ limit = {
173
+ capital_scope = {
174
+ NOT = {
175
+ OR = {
176
+ province_has_center_of_trade_of_level = 1
177
+ province_has_center_of_trade_of_level = 2
178
+ province_has_center_of_trade_of_level = 3
179
+ }
180
+ }
181
+ }
182
+ }
183
+ capital_scope = {
184
+ center_of_trade = 1
185
+ }
186
+ }
187
+ else_if = {
188
+ limit = {
189
+ capital_scope = {
190
+ OR = {
191
+ province_has_center_of_trade_of_level = 1
192
+ province_has_center_of_trade_of_level = 2
193
+ }
194
+ }
195
+ }
196
+ capital_scope = {
197
+ add_center_of_trade_level = 1
198
+ }
199
+ }
200
+ else = {
201
+ capital_scope = {
202
+ add_base_production = 3
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ arm_wool_industry = {
211
+ icon = mission_serfdom
212
+ required_missions = { arm_national_awakening }
213
+ position = 6
214
+
215
+ provinces_to_highlight = {
216
+ trade_goods = wool
217
+ OR = {
218
+ NOT = { has_production_building_trigger = yes }
219
+ NOT = { base_production = 3 }
220
+ }
221
+ owned_by = ROOT
222
+ }
223
+
224
+ trigger = {
225
+ calc_true_if = {
226
+ all_owned_province = {
227
+ trade_goods = wool
228
+ base_production = 3
229
+ has_production_building_trigger = yes
230
+ }
231
+ amount = 8
232
+ }
233
+ }
234
+
235
+ effect = {
236
+ custom_tooltip = arm_wool_dev_tt
237
+ tooltip = {
238
+ add_province_modifier = {
239
+ name = "arm_booming_wool_industry"
240
+ duration = 7300
241
+ }
242
+ }
243
+ define_advisor = {
244
+ type = natural_scientist
245
+ skill = 3
246
+ culture = ROOT
247
+ religion = ROOT
248
+ cost_multiplier = 0.25
249
+ }
250
+ hidden_effect = {
251
+ every_owned_province = {
252
+ limit = {
253
+ trade_goods = wool
254
+ base_production = 3
255
+ has_production_building_trigger = yes
256
+ }
257
+ add_base_production = 1
258
+ add_province_modifier = {
259
+ name = "arm_booming_wool_industry"
260
+ duration = 7300
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ arm_resettle_ancestral_homeland = {
268
+ icon = mission_expel_the_moriscos
269
+ required_missions = { arm_wool_industry arm_rebuild_tigranakert }
270
+ position = 7
271
+
272
+ provinces_to_highlight = {
273
+ owned_by = ROOT
274
+ NOT = {
275
+ culture = ROOT
276
+ }
277
+ }
278
+
279
+ trigger = {
280
+ calc_true_if = {
281
+ all_owned_province = {
282
+ culture = ROOT
283
+ }
284
+ amount = 15
285
+ }
286
+ }
287
+
288
+ effect = {
289
+ custom_tooltip = arm_converting_culture_tt
290
+ add_country_modifier = {
291
+ name = "arm_resettle_ancestral"
292
+ duration = -1
293
+ }
294
+ set_country_flag = arm_coversion_bonus
295
+ }
296
+ }
297
+
298
+ }
299
+
300
+ arm_second_branch = {
301
+ slot = 2
302
+ generic = no
303
+ ai = yes
304
+ potential_on_load = {
305
+ has_dlc = "King of Kings"
306
+ }
307
+ potential = {
308
+ OR = {
309
+ tag = MLK
310
+ tag = ARM
311
+ }
312
+ NOT = { map_setup = map_setup_random }
313
+ has_dlc = "King of Kings"
314
+ }
315
+ has_country_shield = yes
316
+
317
+ arm_artaxiad_legacy = {
318
+ icon = arm_artaxiad_legacy
319
+ required_missions = { arm_avenge_seljuk_conquest }
320
+ position = 3
321
+
322
+ provinces_to_highlight = {
323
+ region = persia_region
324
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
325
+ }
326
+
327
+ trigger = {
328
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
329
+ region = persia_region
330
+ value = 10
331
+ }
332
+ }
333
+
334
+ effect = {
335
+ add_prestige_or_monarch_power = { amount = 25 }
336
+ add_country_modifier = {
337
+ name = "arm_artaxiad_legacy"
338
+ duration = 7300
339
+ }
340
+ persia_region = {
341
+ limit = {
342
+ NOT = { is_core = ROOT }
343
+ NOT = { is_permanent_claim = ROOT }
344
+ }
345
+ add_permanent_claim = ROOT
346
+ }
347
+ }
348
+ }
349
+
350
+ arm_rebuild_tigranakert = {
351
+ icon = mission_renovate_kannauj
352
+ required_missions = { }
353
+ position = 6
354
+
355
+ provinces_to_highlight = {
356
+ province_id = 418
357
+ }
358
+
359
+ trigger = {
360
+ owns = 418
361
+ 418 = {
362
+ religion = ROOT
363
+ }
364
+ 418 = {
365
+ culture = ROOT
366
+ }
367
+ 418 = {
368
+ development = 15
369
+ }
370
+ 418 = {
371
+ has_tax_building_trigger = yes
372
+ }
373
+ 418 = {
374
+ has_trade_building_trigger = yes
375
+ }
376
+ 418 = {
377
+ has_production_building_trigger = yes
378
+ }
379
+ }
380
+
381
+ effect = {
382
+ set_country_flag = arm_capital_tigranakert
383
+ 418 = {
384
+ change_province_name = "Tigranakert"
385
+ rename_capital = "Tigranakert"
386
+ }
387
+ 418 = {
388
+ change_trade_goods = cloth
389
+ }
390
+ 418 = {
391
+ add_province_modifier = {
392
+ name = "arm_great_city_tigranes"
393
+ duration = -1
394
+ }
395
+ }
396
+ custom_tooltip = arm_tigranakert_capital_tt
397
+ }
398
+ }
399
+
400
+ }
401
+
402
+ arm_third_branch = {
403
+ slot = 3
404
+ generic = no
405
+ ai = yes
406
+ potential_on_load = {
407
+ has_dlc = "King of Kings"
408
+ }
409
+ potential = {
410
+ OR = {
411
+ tag = MLK
412
+ tag = ARM
413
+ }
414
+ NOT = { map_setup = map_setup_random }
415
+ has_dlc = "King of Kings"
416
+ }
417
+ has_country_shield = yes
418
+
419
+ arm_breaking_the_chains = {
420
+ icon = mission_the_hakkapeliitta
421
+ required_missions = { }
422
+ position = 1
423
+
424
+ trigger = {
425
+ OR = {
426
+ is_free_or_tributary_trigger = yes
427
+ AND = {
428
+ is_subject = yes
429
+ NOT = {
430
+ is_subject_of = QAR
431
+ }
432
+ overlord = {
433
+ reverse_has_opinion = {
434
+ who = ROOT
435
+ value = 190
436
+ }
437
+ }
438
+ }
439
+ }
440
+ }
441
+
442
+ effect = {
443
+ armenia_area = {
444
+ limit = {
445
+ NOT = { is_core = ROOT }
446
+ NOT = { is_permanent_claim = ROOT }
447
+ }
448
+ add_permanent_claim = ROOT
449
+ }
450
+ shirvan_area = {
451
+ limit = {
452
+ NOT = { is_core = ROOT }
453
+ NOT = { is_permanent_claim = ROOT }
454
+ }
455
+ add_permanent_claim = ROOT
456
+ }
457
+ tabriz_area = {
458
+ limit = {
459
+ NOT = { is_core = ROOT }
460
+ NOT = { is_permanent_claim = ROOT }
461
+ }
462
+ add_permanent_claim = ROOT
463
+ }
464
+ if = {
465
+ limit = {
466
+ is_free_or_tributary_trigger = yes
467
+ }
468
+ custom_tooltip = arm_breaking_chains_indep_tt_yes
469
+ tooltip = {
470
+ add_stability_or_adm_power = yes
471
+ add_adm_power = 100
472
+ add_dip_power = 100
473
+ add_mil_power = 100
474
+ add_country_modifier = {
475
+ name = "arm_resurgence"
476
+ duration = 7300
477
+ }
478
+ }
479
+ }
480
+ else = {
481
+ custom_tooltip = arm_breaking_chains_indep_tt_no
482
+ tooltip = {
483
+ add_stability_or_adm_power = yes
484
+ add_adm_power = 100
485
+ add_dip_power = 100
486
+ add_mil_power = 100
487
+ add_country_modifier = {
488
+ name = "arm_resurgence"
489
+ duration = 7300
490
+ }
491
+ }
492
+ }
493
+ if = {
494
+ limit = {
495
+ is_subject = yes
496
+ NOT = {
497
+ is_subject_of = QAR
498
+ }
499
+ overlord = {
500
+ has_opinion = {
501
+ who = ROOT
502
+ value = 190
503
+ }
504
+ }
505
+ }
506
+ custom_tooltip = arm_breaking_chains_vassal_tt_yes
507
+ tooltip = {
508
+ add_liberty_desire = -50
509
+ }
510
+ }
511
+ else = {
512
+ custom_tooltip = arm_breaking_chains_vassal_tt_no
513
+ tooltip = {
514
+ add_liberty_desire = -50
515
+ }
516
+ }
517
+ hidden_effect = {
518
+ if = {
519
+ limit = {
520
+ is_free_or_tributary_trigger = yes
521
+ }
522
+ add_stability_or_adm_power = yes
523
+ add_adm_power = 100
524
+ add_dip_power = 100
525
+ add_mil_power = 100
526
+ add_country_modifier = {
527
+ name = "arm_resurgence"
528
+ duration = 7300
529
+ }
530
+ }
531
+ else_if = {
532
+ limit = {
533
+ is_subject = yes
534
+ NOT = {
535
+ is_subject_of = QAR
536
+ }
537
+ overlord = {
538
+ has_opinion = {
539
+ who = ROOT
540
+ value = 190
541
+ }
542
+ }
543
+ }
544
+ add_liberty_desire = -50
545
+ }
546
+ }
547
+ }
548
+ }
549
+
550
+ arm_caspian_riches = {
551
+ icon = mission_arabian_sea_trade
552
+ required_missions = { arm_breaking_the_chains }
553
+ position = 2
554
+
555
+ provinces_to_highlight = {
556
+ area = shirvan_area
557
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
558
+ }
559
+
560
+ trigger = {
561
+ shirvan_area = {
562
+ type = all
563
+ country_or_non_sovereign_subject_holds = ROOT
564
+ }
565
+ }
566
+
567
+ effect = {
568
+ 421 = {
569
+ center_of_trade = 1
570
+ }
571
+ add_country_modifier = {
572
+ name = "arm_caspian_riches"
573
+ duration = 5475
574
+ }
575
+ if = {
576
+ limit = {
577
+ 4341 = {
578
+ trade_share = {
579
+ country = ROOT
580
+ share = 15
581
+ }
582
+ }
583
+ }
584
+ custom_tooltip = arm_caspian_riches_tt_yes
585
+ }
586
+ else = {
587
+ custom_tooltip = arm_caspian_riches_tt_no
588
+ }
589
+ hidden_effect = {
590
+ if = {
591
+ limit = {
592
+ 4341 = {
593
+ trade_share = {
594
+ country = ROOT
595
+ share = 15
596
+ }
597
+ }
598
+ }
599
+ remove_country_modifier = arm_caspian_riches
600
+ add_country_modifier = {
601
+ name = "arm_caspian_riches"
602
+ duration = 10950
603
+ }
604
+ }
605
+ }
606
+ }
607
+ }
608
+
609
+ arm_ecclesiastical_revival = {
610
+ icon = mission_most_holy_synod
611
+ required_missions = { }
612
+ position = 3
613
+
614
+ provinces_to_highlight = {
615
+ country_or_non_sovereign_subject_holds = ROOT
616
+ NOT = {
617
+ religion = ROOT
618
+ }
619
+ }
620
+
621
+ trigger = {
622
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
623
+ religion = ROOT
624
+ value = 12
625
+ }
626
+ if = {
627
+ limit = {
628
+ has_estate = estate_church
629
+ }
630
+ estate_loyalty = {
631
+ estate = estate_church
632
+ loyalty = 60
633
+ }
634
+ num_of_estate_agendas_completed = {
635
+ estate = estate_church
636
+ value = 3
637
+ }
638
+ }
639
+ }
640
+
641
+ effect = {
642
+ custom_tooltip = arm_true_faith_tax_tt
643
+ add_country_modifier = {
644
+ name = "arm_ecclesiastical_revival"
645
+ duration = 7300
646
+ }
647
+ hidden_effect = {
648
+ for = {
649
+ amount = 5
650
+ effect = "
651
+ random_owned_province = {
652
+ limit = {
653
+ religion = ROOT
654
+ }
655
+ add_base_tax = 1
656
+ }
657
+ "
658
+ }
659
+ }
660
+ }
661
+ }
662
+
663
+ arm_etchmiadzin_cathedral = {
664
+ icon = arm_etchmiadzin_cathedral
665
+ required_missions = { arm_ecclesiastical_revival }
666
+ position = 4
667
+
668
+ provinces_to_highlight = {
669
+ if = {
670
+ limit = {
671
+ has_dlc = "Leviathan"
672
+ }
673
+ OR = {
674
+ province_id = 419
675
+ AND = {
676
+ NOT = {
677
+ has_tax_building_trigger = yes
678
+ }
679
+ owned_by = ROOT
680
+ }
681
+ }
682
+ }
683
+ else = {
684
+ owned_by = ROOT
685
+ NOT = {
686
+ has_tax_building_trigger = yes
687
+ }
688
+ }
689
+ }
690
+
691
+ trigger = {
692
+ if = {
693
+ limit = {
694
+ has_dlc = "Leviathan"
695
+ }
696
+ owns = 419
697
+ 419 = {
698
+ has_great_project = {
699
+ type = etchimiadzin_cathedral
700
+ tier = 1
701
+ }
702
+ }
703
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
704
+ has_tax_building_trigger = yes
705
+ value = 5
706
+ }
707
+ }
708
+ else = {
709
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
710
+ has_tax_building_trigger = yes
711
+ value = 10
712
+ }
713
+ }
714
+ }
715
+
716
+ effect = {
717
+ custom_tooltip = arm_upgrade_church_tt
718
+ add_country_modifier = {
719
+ name = arm_cathedral
720
+ duration = 3650
721
+ }
722
+ define_advisor = {
723
+ type = inquisitor
724
+ skill = 3
725
+ culture = ROOT
726
+ religion = ROOT
727
+ cost_multiplier = 0.25
728
+ }
729
+ hidden_effect = {
730
+ for = {
731
+ amount = 5
732
+ effect = "
733
+ random_owned_province = {
734
+ limit = {
735
+ has_building = temple
736
+ }
737
+ remove_building = temple
738
+ add_building = cathedral
739
+ }
740
+ "
741
+ }
742
+ }
743
+ }
744
+ }
745
+
746
+ arm_holy_sites = {
747
+ icon = arm_holy_sites
748
+ required_missions = { arm_etchmiadzin_cathedral }
749
+ position = 5
750
+
751
+ provinces_to_highlight = {
752
+ if = {
753
+ limit = {
754
+ ROOT = {
755
+ religion = coptic
756
+ }
757
+ }
758
+ OR = {
759
+ province_id = 358
760
+ province_id = 1227
761
+ province_id = 2313
762
+ province_id = 1234
763
+ province_id = 419
764
+ }
765
+ NOT = {
766
+ owner = {
767
+ religion = coptic
768
+ }
769
+ }
770
+ }
771
+ else = {
772
+ owned_by = ROOT
773
+ has_tax_building_trigger = yes
774
+ NOT = {
775
+ base_tax = 10
776
+ }
777
+ }
778
+ }
779
+
780
+ trigger = {
781
+ if = {
782
+ limit = {
783
+ religion = coptic
784
+ }
785
+ calc_true_if = {
786
+ desc = arm_own_coptic_holy_site_tt
787
+ all_province = {
788
+ OR = {
789
+ province_id = 358
790
+ province_id = 1227
791
+ province_id = 2313
792
+ province_id = 1234
793
+ province_id = 419
794
+ }
795
+ owner = {
796
+ religion = coptic
797
+ }
798
+ }
799
+ amount = 3
800
+ }
801
+ }
802
+ else = {
803
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
804
+ has_tax_building_trigger = yes
805
+ base_tax = 10
806
+ value = 10
807
+ }
808
+ }
809
+ }
810
+
811
+ effect = {
812
+ if = {
813
+ limit = {
814
+ religion = coptic
815
+ }
816
+ custom_tooltip = arm_all_coptic_tt
817
+ if = {
818
+ limit = {
819
+ owns = 358
820
+ owns = 1227
821
+ owns = 2313
822
+ owns = 1234
823
+ owns = 419
824
+ }
825
+ custom_tooltip = arm_own_holy_sites_tt_yes
826
+ }
827
+ else = {
828
+ custom_tooltip = arm_own_holy_sites_tt_no
829
+ }
830
+ }
831
+ else = {
832
+ add_country_modifier = {
833
+ name = arm_sword_of_true_faith
834
+ duration = 9125
835
+ }
836
+ }
837
+ hidden_effect = {
838
+ if = {
839
+ limit = {
840
+ religion = coptic
841
+ }
842
+ every_country = {
843
+ limit = {
844
+ religion = coptic
845
+ }
846
+ add_country_modifier = {
847
+ name = arm_holy_sites_protector
848
+ duration = 9125
849
+ }
850
+ }
851
+ if = {
852
+ limit = {
853
+ owns = 358
854
+ owns = 1227
855
+ owns = 2313
856
+ owns = 1234
857
+ owns = 419
858
+ }
859
+ remove_country_modifier = arm_holy_sites_protector
860
+ add_country_modifier = {
861
+ name = arm_holy_sites_protector
862
+ duration = -1
863
+ }
864
+ }
865
+ }
866
+ }
867
+ }
868
+ }
869
+
870
+ arm_refine_the_nakharar = {
871
+ icon = mission_early_russian_army
872
+ required_missions = { }
873
+ position = 6
874
+
875
+ trigger = {
876
+ if = {
877
+ limit = {
878
+ has_estate = estate_nobles
879
+ }
880
+ OR = {
881
+ estate_loyalty = {
882
+ estate = estate_nobles
883
+ loyalty = 60
884
+ }
885
+ num_of_estate_privileges = {
886
+ estate = estate_nobles
887
+ value = 4
888
+ }
889
+ }
890
+ num_of_estate_agendas_completed = {
891
+ estate = estate_nobles
892
+ value = 3
893
+ }
894
+ }
895
+ else = {
896
+ OR = {
897
+ MIL = 5
898
+ monthly_mil = 10
899
+ }
900
+ }
901
+ }
902
+
903
+ effect = {
904
+ custom_tooltip = arm_gain_mil_per_privileges
905
+ set_country_flag = arm_unlocked_nakharar
906
+ unlock_government_reform = {
907
+ government_reform = nakharar_title
908
+ }
909
+ hidden_effect = {
910
+ if = {
911
+ limit = {
912
+ num_of_estate_privileges = {
913
+ estate = estate_nobles
914
+ value = 4
915
+ }
916
+ }
917
+ add_mil_power = 100
918
+ }
919
+ else_if = {
920
+ limit = {
921
+ num_of_estate_privileges = {
922
+ estate = estate_nobles
923
+ value = 3
924
+ }
925
+ }
926
+ add_mil_power = 75
927
+ }
928
+ else_if = {
929
+ limit = {
930
+ num_of_estate_privileges = {
931
+ estate = estate_nobles
932
+ value = 2
933
+ }
934
+ }
935
+ add_mil_power = 50
936
+ }
937
+ else_if = {
938
+ limit = {
939
+ num_of_estate_privileges = {
940
+ estate = estate_nobles
941
+ value = 1
942
+ }
943
+ }
944
+ add_mil_power = 25
945
+ }
946
+ }
947
+ }
948
+ }
949
+
950
+ arm_office_of_sparapet = {
951
+ icon = mission_late_ottoman_reforms
952
+ required_missions = { arm_refine_the_nakharar }
953
+ position = 7
954
+
955
+ trigger = {
956
+ OR = {
957
+ army_tradition = 60
958
+ army_professionalism = 0.3
959
+ }
960
+ monthly_mil = 10
961
+ has_mil_advisor_3 = yes
962
+ }
963
+
964
+ effect = {
965
+ set_country_flag = arm_unlocked_sparapet
966
+ unlock_government_reform = {
967
+ government_reform = sparapet_office
968
+ }
969
+ }
970
+ }
971
+
972
+ }
973
+
974
+ arm_fourth_branch = {
975
+ slot = 4
976
+ generic = no
977
+ ai = yes
978
+ potential_on_load = {
979
+ has_dlc = "King of Kings"
980
+ }
981
+ potential = {
982
+ OR = {
983
+ tag = MLK
984
+ tag = ARM
985
+ }
986
+ NOT = { map_setup = map_setup_random }
987
+ has_dlc = "King of Kings"
988
+ }
989
+ has_country_shield = yes
990
+
991
+ arm_bagrationi_union = {
992
+ icon = mission_the_caucasus_rus
993
+ required_missions = { arm_liberation_of_the_homeland }
994
+ position = 3
995
+
996
+ provinces_to_highlight = {
997
+ OR = {
998
+ area = kartli_kakheti_area
999
+ area = samtskhe_area
1000
+ area = imereti_area
1001
+ }
1002
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1003
+ }
1004
+
1005
+ trigger = {
1006
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1007
+ OR = {
1008
+ area = kartli_kakheti_area
1009
+ area = samtskhe_area
1010
+ area = imereti_area
1011
+ }
1012
+ value = 6
1013
+ }
1014
+ }
1015
+
1016
+ effect = {
1017
+ if = {
1018
+ limit = {
1019
+ NOT = {
1020
+ accepted_culture = georgian
1021
+ }
1022
+ }
1023
+ add_accepted_culture = georgian
1024
+ }
1025
+ else = {
1026
+ add_dip_power = 100
1027
+ }
1028
+ custom_tooltip = arm_georgian_autonomy_tt
1029
+ add_country_modifier = {
1030
+ name = arm_georgian_union
1031
+ duration = -1
1032
+ desc = arm_geo_accepted_tt
1033
+ }
1034
+ caucasia_region = {
1035
+ limit = {
1036
+ NOT = { is_core = ROOT }
1037
+ NOT = { is_permanent_claim = ROOT }
1038
+ }
1039
+ add_permanent_claim = ROOT
1040
+ }
1041
+ hidden_effect = {
1042
+ every_owned_province = {
1043
+ limit = {
1044
+ culture = georgian
1045
+ }
1046
+ add_local_autonomy = -50
1047
+ }
1048
+ }
1049
+ }
1050
+ }
1051
+
1052
+ arm_secure_caucasia = {
1053
+ icon = mission_castle_construction
1054
+ required_missions = { arm_bagrationi_union }
1055
+ position = 4
1056
+
1057
+ provinces_to_highlight = {
1058
+ region = caucasia_region
1059
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1060
+ }
1061
+
1062
+ trigger = {
1063
+ caucasia_region = {
1064
+ type = all
1065
+ country_or_non_sovereign_subject_holds = ROOT
1066
+ }
1067
+ }
1068
+
1069
+ effect = {
1070
+ custom_tooltip = arm_caucasian_dev_tt
1071
+ caucasia_region = {
1072
+ add_province_modifier = {
1073
+ name = "arm_caucasian_union"
1074
+ duration = 7300
1075
+ }
1076
+ }
1077
+ astrakhan_area = {
1078
+ limit = {
1079
+ NOT = { is_core = ROOT }
1080
+ NOT = { is_permanent_claim = ROOT }
1081
+ }
1082
+ add_permanent_claim = ROOT
1083
+ }
1084
+ azov_area = {
1085
+ limit = {
1086
+ NOT = { is_core = ROOT }
1087
+ NOT = { is_permanent_claim = ROOT }
1088
+ }
1089
+ add_permanent_claim = ROOT
1090
+ }
1091
+ crimea_area = {
1092
+ limit = {
1093
+ NOT = { is_core = ROOT }
1094
+ NOT = { is_permanent_claim = ROOT }
1095
+ }
1096
+ add_permanent_claim = ROOT
1097
+ }
1098
+ hidden_effect = {
1099
+ for = {
1100
+ amount = 10
1101
+ effect = "
1102
+ random_owned_province = {
1103
+ limit = {
1104
+ culture_group = caucasian
1105
+ }
1106
+ add_base_manpower = 1
1107
+ }
1108
+ "
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+
1114
+ arm_break_osmans_legacy = {
1115
+ icon = mission_ottoman_diplomacy
1116
+ required_missions = { arm_proclaim_great_armenia }
1117
+ position = 5
1118
+
1119
+ provinces_to_highlight = {
1120
+ OR = {
1121
+ area = dulkadir_area
1122
+ area = rum_area
1123
+ area = kastamonu_area
1124
+ area = karaman_area
1125
+ }
1126
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1127
+ }
1128
+
1129
+ trigger = {
1130
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1131
+ OR = {
1132
+ area = dulkadir_area
1133
+ area = rum_area
1134
+ area = kastamonu_area
1135
+ area = karaman_area
1136
+ }
1137
+ value = 12
1138
+ }
1139
+ }
1140
+
1141
+ effect = {
1142
+ custom_tooltip = arm_turkish_provinces_tt
1143
+ add_country_modifier = {
1144
+ name = "arm_new_anatolian_hegemon"
1145
+ duration = 7300
1146
+ }
1147
+ anatolia_region = {
1148
+ limit = {
1149
+ NOT = { is_core = ROOT }
1150
+ NOT = { is_permanent_claim = ROOT }
1151
+ }
1152
+ add_permanent_claim = ROOT
1153
+ }
1154
+ hidden_effect = {
1155
+ every_owned_province = {
1156
+ limit = {
1157
+ culture = turkish
1158
+ }
1159
+ add_local_autonomy = -100
1160
+ add_nationalism = -20
1161
+ }
1162
+ }
1163
+ if = {
1164
+ limit = {
1165
+ OR = {
1166
+ TUR = {
1167
+ is_enemy = ROOT
1168
+ }
1169
+ TUR = {
1170
+ is_rival = ROOT
1171
+ }
1172
+ }
1173
+ }
1174
+ custom_tooltip = arm_ottoman_rival_tt_yes
1175
+ tooltip = {
1176
+ add_power_projection = {
1177
+ type = mission_rewards_power_projection
1178
+ amount = 25
1179
+ }
1180
+ }
1181
+ }
1182
+ else = {
1183
+ custom_tooltip = arm_ottoman_rival_tt_no
1184
+ tooltip = {
1185
+ add_power_projection = {
1186
+ type = mission_rewards_power_projection
1187
+ amount = 25
1188
+ }
1189
+ }
1190
+ }
1191
+ hidden_effect = {
1192
+ if = {
1193
+ limit = {
1194
+ OR = {
1195
+ TUR = {
1196
+ is_enemy = ROOT
1197
+ }
1198
+ TUR = {
1199
+ is_rival = ROOT
1200
+ }
1201
+ }
1202
+ }
1203
+ add_power_projection = {
1204
+ type = mission_rewards_power_projection
1205
+ amount = 25
1206
+ }
1207
+ }
1208
+ }
1209
+ }
1210
+ }
1211
+
1212
+ arm_restore_armenian_cilicia = {
1213
+ icon = arm_restore_armenian_cilicia
1214
+ required_missions = { arm_break_osmans_legacy }
1215
+ position = 5
1216
+
1217
+ provinces_to_highlight = {
1218
+ OR = {
1219
+ province_id = 327
1220
+ province_id = 332
1221
+ province_id = 4298
1222
+ }
1223
+ OR = {
1224
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1225
+ NOT = { religion = ROOT }
1226
+ nationalism = 1
1227
+ }
1228
+ }
1229
+
1230
+ trigger = {
1231
+ 327 = {
1232
+ country_or_non_sovereign_subject_holds = ROOT
1233
+ religion = ROOT
1234
+ NOT = {
1235
+ nationalism = 1
1236
+ }
1237
+ }
1238
+ 332 = {
1239
+ country_or_non_sovereign_subject_holds = ROOT
1240
+ religion = ROOT
1241
+ NOT = {
1242
+ nationalism = 1
1243
+ }
1244
+ }
1245
+ 4298 = {
1246
+ country_or_non_sovereign_subject_holds = ROOT
1247
+ religion = ROOT
1248
+ NOT = {
1249
+ nationalism = 1
1250
+ }
1251
+ }
1252
+ }
1253
+
1254
+ effect = {
1255
+ custom_tooltip = arm_cilicia_tt
1256
+ hidden_effect = {
1257
+ 327 = {
1258
+ change_culture = ROOT
1259
+ if = {
1260
+ limit = {
1261
+ owner = {
1262
+ has_country_flag = arm_coversion_bonus
1263
+ }
1264
+ NOT = {
1265
+ has_province_flag = arm_converted_bonus
1266
+ }
1267
+ }
1268
+ add_base_tax = 1
1269
+ add_base_manpower = 1
1270
+ add_base_production = 1
1271
+ set_province_flag = arm_converted_bonus
1272
+ }
1273
+ }
1274
+ 332 = {
1275
+ change_culture = ROOT
1276
+ if = {
1277
+ limit = {
1278
+ owner = {
1279
+ has_country_flag = arm_coversion_bonus
1280
+ }
1281
+ NOT = {
1282
+ has_province_flag = arm_converted_bonus
1283
+ }
1284
+ }
1285
+ add_base_tax = 1
1286
+ add_base_manpower = 1
1287
+ add_base_production = 1
1288
+ set_province_flag = arm_converted_bonus
1289
+ }
1290
+ }
1291
+ 4298 = {
1292
+ change_culture = ROOT
1293
+ if = {
1294
+ limit = {
1295
+ owner = {
1296
+ has_country_flag = arm_coversion_bonus
1297
+ }
1298
+ NOT = {
1299
+ has_province_flag = arm_converted_bonus
1300
+ }
1301
+ }
1302
+ add_base_tax = 1
1303
+ add_base_manpower = 1
1304
+ add_base_production = 1
1305
+ set_province_flag = arm_converted_bonus
1306
+ }
1307
+ }
1308
+ }
1309
+ add_country_modifier = {
1310
+ name = "arm_reunite_diaspora"
1311
+ duration = -1
1312
+ }
1313
+ }
1314
+ }
1315
+
1316
+ }
1317
+
1318
+ arm_fifth_branch = {
1319
+ slot = 5
1320
+ generic = no
1321
+ ai = yes
1322
+ potential_on_load = {
1323
+ has_dlc = "King of Kings"
1324
+ }
1325
+ potential = {
1326
+ OR = {
1327
+ tag = MLK
1328
+ tag = ARM
1329
+ }
1330
+ NOT = { map_setup = map_setup_random }
1331
+ has_dlc = "King of Kings"
1332
+ }
1333
+ has_country_shield = yes
1334
+
1335
+ arm_liberation_of_the_homeland = {
1336
+ icon = mission_unite_home_region
1337
+ required_missions = { arm_breaking_the_chains }
1338
+ position = 2
1339
+
1340
+ provinces_to_highlight = {
1341
+ area = armenia_area
1342
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1343
+ }
1344
+
1345
+ trigger = {
1346
+ armenia_area = {
1347
+ type = all
1348
+ country_or_non_sovereign_subject_holds = ROOT
1349
+ }
1350
+ }
1351
+
1352
+ effect = {
1353
+ change_ruler_stat = {
1354
+ type = mil
1355
+ amount = 2
1356
+ }
1357
+ add_ruler_modifier = {
1358
+ name = "arm_liberator"
1359
+ duration = -1
1360
+ }
1361
+ custom_tooltip = arm_cores_armenian_provinces_tt
1362
+ kartli_kakheti_area = {
1363
+ limit = {
1364
+ NOT = { is_core = ROOT }
1365
+ NOT = { is_permanent_claim = ROOT }
1366
+ }
1367
+ add_permanent_claim = ROOT
1368
+ }
1369
+ samtskhe_area = {
1370
+ limit = {
1371
+ NOT = { is_core = ROOT }
1372
+ NOT = { is_permanent_claim = ROOT }
1373
+ }
1374
+ add_permanent_claim = ROOT
1375
+ }
1376
+ imereti_area = {
1377
+ limit = {
1378
+ NOT = { is_core = ROOT }
1379
+ NOT = { is_permanent_claim = ROOT }
1380
+ }
1381
+ add_permanent_claim = ROOT
1382
+ }
1383
+ hidden_effect = {
1384
+ every_province = {
1385
+ limit = {
1386
+ culture = armenian
1387
+ NOT = {
1388
+ OR = {
1389
+ is_core = ROOT
1390
+ country_or_non_sovereign_subject_holds = ROOT
1391
+ }
1392
+ }
1393
+ }
1394
+ add_core = ROOT
1395
+ }
1396
+ }
1397
+ }
1398
+ }
1399
+
1400
+ arm_proclaim_great_armenia = {
1401
+ icon = arm_proclaim_great_armenia
1402
+ required_missions = { arm_liberation_of_the_homeland arm_bagrationi_union }
1403
+ position = 4
1404
+
1405
+ provinces_to_highlight = {
1406
+ culture = armenian
1407
+ NOT = {
1408
+ owned_by = ROOT
1409
+ }
1410
+ }
1411
+
1412
+ trigger = {
1413
+ tag = ARM
1414
+ owns_all_provinces = {
1415
+ culture = armenian
1416
+ }
1417
+ }
1418
+
1419
+ effect = {
1420
+ country_event = { id = flavor_arm.1 }
1421
+ custom_tooltip = arm_great_armenia_insight
1422
+ tooltip = {
1423
+ add_country_modifier = {
1424
+ name = "arm_resurgent_armenia"
1425
+ duration = 7300
1426
+ }
1427
+ }
1428
+ dulkadir_area = {
1429
+ limit = {
1430
+ NOT = { is_core = ROOT }
1431
+ NOT = { is_permanent_claim = ROOT }
1432
+ }
1433
+ add_permanent_claim = ROOT
1434
+ }
1435
+ erzurum_area = {
1436
+ limit = {
1437
+ NOT = { is_core = ROOT }
1438
+ NOT = { is_permanent_claim = ROOT }
1439
+ }
1440
+ add_permanent_claim = ROOT
1441
+ }
1442
+ rum_area = {
1443
+ limit = {
1444
+ NOT = { is_core = ROOT }
1445
+ NOT = { is_permanent_claim = ROOT }
1446
+ }
1447
+ add_permanent_claim = ROOT
1448
+ }
1449
+ kastamonu_area = {
1450
+ limit = {
1451
+ NOT = { is_core = ROOT }
1452
+ NOT = { is_permanent_claim = ROOT }
1453
+ }
1454
+ add_permanent_claim = ROOT
1455
+ }
1456
+ karaman_area = {
1457
+ limit = {
1458
+ NOT = { is_core = ROOT }
1459
+ NOT = { is_permanent_claim = ROOT }
1460
+ }
1461
+ add_permanent_claim = ROOT
1462
+ }
1463
+ aleppo_area = {
1464
+ limit = {
1465
+ NOT = { is_core = ROOT }
1466
+ NOT = { is_permanent_claim = ROOT }
1467
+ }
1468
+ add_permanent_claim = ROOT
1469
+ }
1470
+ syria_area = {
1471
+ limit = {
1472
+ NOT = { is_core = ROOT }
1473
+ NOT = { is_permanent_claim = ROOT }
1474
+ }
1475
+ add_permanent_claim = ROOT
1476
+ }
1477
+ syrian_desert_area = {
1478
+ limit = {
1479
+ NOT = { is_core = ROOT }
1480
+ NOT = { is_permanent_claim = ROOT }
1481
+ }
1482
+ add_permanent_claim = ROOT
1483
+ }
1484
+ al_jazira_area = {
1485
+ limit = {
1486
+ NOT = { is_core = ROOT }
1487
+ NOT = { is_permanent_claim = ROOT }
1488
+ }
1489
+ add_permanent_claim = ROOT
1490
+ }
1491
+ north_kurdistan_area = {
1492
+ limit = {
1493
+ NOT = { is_core = ROOT }
1494
+ NOT = { is_permanent_claim = ROOT }
1495
+ }
1496
+ add_permanent_claim = ROOT
1497
+ }
1498
+ if = {
1499
+ limit = {
1500
+ is_great_power = yes
1501
+ }
1502
+ custom_tooltip = arm_great_power_tt_yes
1503
+ tooltip = {
1504
+ add_splendor = 200
1505
+ }
1506
+ }
1507
+ else = {
1508
+ custom_tooltip = arm_great_power_tt_no
1509
+ tooltip = {
1510
+ add_splendor = 200
1511
+ }
1512
+ }
1513
+ hidden_effect = {
1514
+ if = {
1515
+ limit = {
1516
+ is_great_power = yes
1517
+ }
1518
+ add_splendor = 200
1519
+ }
1520
+ }
1521
+ }
1522
+ }
1523
+
1524
+ arm_mamluks = {
1525
+ icon = mission_break_the_mamluks
1526
+ required_missions = { arm_proclaim_great_armenia }
1527
+ position = 5
1528
+
1529
+ provinces_to_highlight = {
1530
+ OR = {
1531
+ area = syria_area
1532
+ area = aleppo_area
1533
+ area = syrian_desert_area
1534
+ area = al_jazira_area
1535
+ }
1536
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1537
+ }
1538
+
1539
+ trigger = {
1540
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1541
+ OR = {
1542
+ area = aleppo_area
1543
+ area = syrian_desert_area
1544
+ area = syria_area
1545
+ area = al_jazira_area
1546
+ }
1547
+ value = 12
1548
+ }
1549
+ }
1550
+
1551
+ effect = {
1552
+ if = {
1553
+ limit = {
1554
+ NOT = {
1555
+ army_tradition = 50
1556
+ }
1557
+ }
1558
+ create_general = { tradition = 50 }
1559
+ }
1560
+ else_if = {
1561
+ limit = {
1562
+ NOT = {
1563
+ army_tradition = 75
1564
+ }
1565
+ }
1566
+ create_general = { tradition = 75 }
1567
+ }
1568
+ else = {
1569
+ create_general = { tradition = 100 }
1570
+ }
1571
+ add_country_modifier = {
1572
+ name = "arm_renew_crusades"
1573
+ duration = 7300
1574
+ }
1575
+ palestine_area = {
1576
+ limit = {
1577
+ NOT = { is_core = ROOT }
1578
+ NOT = { is_permanent_claim = ROOT }
1579
+ }
1580
+ add_permanent_claim = ROOT
1581
+ }
1582
+ trans_jordan_area = {
1583
+ limit = {
1584
+ NOT = { is_core = ROOT }
1585
+ NOT = { is_permanent_claim = ROOT }
1586
+ }
1587
+ add_permanent_claim = ROOT
1588
+ }
1589
+ }
1590
+ }
1591
+
1592
+ arm_jerusalem = {
1593
+ icon = jerusalem
1594
+ required_missions = { arm_mamluks }
1595
+ position = 6
1596
+
1597
+ provinces_to_highlight = {
1598
+ area = palestine_area
1599
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1600
+ }
1601
+
1602
+ trigger = {
1603
+ palestine_area = {
1604
+ type = all
1605
+ country_or_non_sovereign_subject_holds = ROOT
1606
+ }
1607
+ }
1608
+
1609
+ effect = {
1610
+ if = {
1611
+ limit = {
1612
+ has_dlc = "Leviathan"
1613
+ }
1614
+ 379 = {
1615
+ add_great_project_tier = {
1616
+ type = holy_city_jerusalem
1617
+ tier = 1
1618
+ }
1619
+ }
1620
+ }
1621
+ else = {
1622
+ custom_tooltip = arm_empower_jerusalem_tt
1623
+ set_country_flag = arm_empower_jerusalem
1624
+ }
1625
+ egypt_region = {
1626
+ limit = {
1627
+ NOT = { is_core = ROOT }
1628
+ NOT = { is_permanent_claim = ROOT }
1629
+ }
1630
+ add_permanent_claim = ROOT
1631
+ }
1632
+ if = {
1633
+ limit = {
1634
+ religion = coptic
1635
+ NOT = {
1636
+ any_country = {
1637
+ religion = coptic
1638
+ is_defender_of_faith = yes
1639
+ }
1640
+ }
1641
+ }
1642
+ custom_tooltip = arm_dotf_tt_yes
1643
+ }
1644
+ else = {
1645
+ custom_tooltip = arm_dotf_tt_no
1646
+ }
1647
+ hidden_effect = {
1648
+ if = {
1649
+ limit = {
1650
+ religion = coptic
1651
+ NOT = {
1652
+ any_country = {
1653
+ religion = coptic
1654
+ is_defender_of_faith = yes
1655
+ }
1656
+ }
1657
+ }
1658
+ set_defender_of_the_faith = { who = ROOT religion = ROOT }
1659
+ }
1660
+ }
1661
+ }
1662
+ }
1663
+
1664
+ arm_egypt = {
1665
+ icon = prester_john
1666
+ required_missions = { arm_jerusalem }
1667
+ position = 6
1668
+
1669
+ provinces_to_highlight = {
1670
+ region = egypt_region
1671
+ OR = {
1672
+ NOT = {
1673
+ country_or_non_sovereign_subject_holds = ROOT
1674
+ }
1675
+ NOT = {
1676
+ religion = ROOT
1677
+ }
1678
+ nationalism = 1
1679
+ local_autonomy = 10
1680
+ }
1681
+ }
1682
+
1683
+ trigger = {
1684
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1685
+ region = egypt_region
1686
+ religion = ROOT
1687
+ value = 12
1688
+ }
1689
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1690
+ region = egypt_region
1691
+ NOT = {
1692
+ nationalism = 1
1693
+ }
1694
+ value = 12
1695
+ }
1696
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1697
+ region = egypt_region
1698
+ NOT = {
1699
+ local_autonomy = 10
1700
+ }
1701
+ value = 12
1702
+ }
1703
+ }
1704
+
1705
+ effect = {
1706
+ if = {
1707
+ limit = {
1708
+ religion = coptic
1709
+ has_dlc = "Origins"
1710
+ }
1711
+ country_event = { id = flavor_arm.4 }
1712
+ custom_tooltip = arm_coptic_restoration_insight_tt
1713
+ tooltip = {
1714
+ egypt_region = {
1715
+ add_province_modifier = {
1716
+ name = arm_coptic_restoration
1717
+ duration = -1
1718
+ }
1719
+ }
1720
+ }
1721
+ }
1722
+ else = {
1723
+ add_adm_power = 100
1724
+ add_dip_power = 100
1725
+ add_mil_power = 100
1726
+ egypt_region = {
1727
+ add_province_modifier = {
1728
+ name = arm_coptic_restoration
1729
+ duration = -1
1730
+ }
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+
1736
+ }
missions/KoK_Byzantine_Missions.txt ADDED
@@ -0,0 +1,4042 @@
1
+ MEE_BYZ_conquest_1 = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ OR = {
10
+ tag = BYZ
11
+ AND = {
12
+ was_tag = BYZ
13
+ tag = ROM
14
+ }
15
+ AND = {
16
+ tag = LAE
17
+ has_country_flag = has_byz_missions
18
+ }
19
+ }
20
+ NOT = { map_setup = map_setup_random }
21
+ has_dlc = "King of Kings"
22
+ }
23
+ has_country_shield = yes
24
+
25
+ BYZ_false_despots = {
26
+ icon = the_latin_empire
27
+ required_missions = { BYZ_impending_doom }
28
+ position = 2
29
+ provinces_to_highlight = {
30
+ OR = {
31
+ owned_by = EPI
32
+ province_id = 4699
33
+ }
34
+ }
35
+ trigger = {
36
+ OR = {
37
+ AND = {
38
+ owns_or_non_sovereign_subject_of = 4699
39
+ NOT = { exists = EPI }
40
+ }
41
+ EPI = { is_subject_of = ROOT }
42
+ }
43
+ }
44
+ effect = {
45
+ simple_dynamic_effect = {
46
+ first_custom_tooltip = BYZ_if_done_via_conquest
47
+ first_limit = "
48
+ owns_or_non_sovereign_subject_of = 4699 #arta
49
+ NOT = { exists = EPI }
50
+ "
51
+ first_effect = "
52
+ add_country_modifier = {
53
+ name = EPI_epirote_forces
54
+ duration = 5475
55
+ }
56
+ "
57
+ second_custom_tooltip = BYZ_if_done_via_vassalization
58
+ second_limit = "
59
+ EPI = { is_subject_of = ROOT }
60
+ "
61
+ second_effect = "
62
+ add_dip_power = 75
63
+
64
+ custom_tooltip = \" \"
65
+
66
+ add_core = 4698 #cephalonia
67
+
68
+ custom_tooltip = \" \"
69
+ "
70
+ }
71
+
72
+ give_claims = { area = albania_area }
73
+
74
+ give_claims = { area = apulia_area }
75
+ give_claims = { area = calabria_area }
76
+ give_claims = { area = sicily_area }
77
+ give_claims = { area = western_sicily_area }
78
+ }
79
+ }
80
+
81
+ BYZ_magna_graecia = {
82
+ icon = dalmatian_conquest
83
+ required_missions = { BYZ_false_despots }
84
+ position = 5
85
+ provinces_to_highlight = {
86
+ OR = {
87
+ area = apulia_area
88
+ area = calabria_area
89
+ area = sicily_area
90
+ area = western_sicily_area
91
+ }
92
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
93
+ }
94
+ trigger = {
95
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
96
+ OR = {
97
+ area = apulia_area
98
+ area = calabria_area
99
+ area = sicily_area
100
+ area = western_sicily_area
101
+ }
102
+ value = 7
103
+ }
104
+
105
+ owns = 123 #Calabria
106
+ owns = 122 #Salento
107
+ }
108
+ effect = {
109
+ create_admiral = { tradition = 60 }
110
+
111
+ custom_tooltip = " "
112
+
113
+ give_claims = { area = lazio_area }
114
+ give_claims = { area = central_italy_area }
115
+ give_claims = { area = naples_area }
116
+
117
+ give_claims = { area = corsica_sardinia_area }
118
+ give_claims = { area = barbary_coast_area }
119
+ give_claims = { area = kabylia_area }
120
+ give_claims = { area = tunisia_area }
121
+ give_claims = { area = djerba_area }
122
+ give_claims = { area = tripolitania_area }
123
+
124
+ custom_tooltip = " "
125
+
126
+ country_event_with_effect_insight = {
127
+ id = MEE_Byzantine_Events.2
128
+ effect = "
129
+ 123 = {
130
+ change_culture = griko
131
+ add_base_tax = 1
132
+ add_base_production = 1
133
+ }
134
+ 122 = {
135
+ change_culture = griko
136
+ add_base_tax = 1
137
+ add_base_production = 1
138
+ }
139
+
140
+ custom_tooltip = BYZ_3_other_provs
141
+
142
+ add_years_of_trade_income = {
143
+ years = 1
144
+ custom_tooltip = BYZ_add_1_years_of_trade_income
145
+ }
146
+ "
147
+ }
148
+ }
149
+ }
150
+
151
+ BYZ_carthage = {
152
+ icon = mission_conquer_tunis
153
+ required_missions = { BYZ_magna_graecia }
154
+ position = 6
155
+ provinces_to_highlight = {
156
+ OR = {
157
+ area = corsica_sardinia_area
158
+ area = barbary_coast_area
159
+ area = kabylia_area
160
+ area = tunisia_area
161
+ area = djerba_area
162
+ area = tripolitania_area
163
+ }
164
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
165
+ }
166
+ trigger = {
167
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
168
+ OR = {
169
+ area = corsica_sardinia_area
170
+ area = barbary_coast_area
171
+ area = kabylia_area
172
+ area = tunisia_area
173
+ area = djerba_area
174
+ area = tripolitania_area
175
+ }
176
+ value = 14
177
+ }
178
+ }
179
+ effect = {
180
+ add_country_modifier = {
181
+ name = BYZ_southern_provinces_1
182
+ duration = -1
183
+ }
184
+
185
+ give_claims = { region = iberia_region }
186
+ give_claims = { region = maghreb_region }
187
+
188
+ custom_tooltip = " "
189
+
190
+ add_country_modifier = {
191
+ name = BYZ_africa_proconsularis
192
+ duration = 10950
193
+ }
194
+ }
195
+ }
196
+ }
197
+
198
+ MEE_BYZ_conquest_2 = {
199
+ slot = 2
200
+ generic = no
201
+ ai = yes
202
+ potential_on_load = {
203
+ has_dlc = "King of Kings"
204
+ }
205
+ potential = {
206
+ OR = {
207
+ tag = BYZ
208
+ AND = {
209
+ was_tag = BYZ
210
+ tag = ROM
211
+ }
212
+ AND = {
213
+ tag = LAE
214
+ has_country_flag = has_byz_missions
215
+ }
216
+ }
217
+ NOT = { map_setup = map_setup_random }
218
+ has_dlc = "King of Kings"
219
+ }
220
+ has_country_shield = yes
221
+
222
+ BYZ_impending_doom = {
223
+ icon = mission_the_roman_sultan
224
+ required_missions = { }
225
+ position = 1
226
+ provinces_to_highlight = {
227
+ }
228
+ trigger = {
229
+ OR = {
230
+ num_of_allies = 2
231
+ army_size_percentage = 0.9
232
+ army_size = 10
233
+ }
234
+ }
235
+ effect = {
236
+ add_country_modifier = {
237
+ name = BYZ_dreams_of_restoration
238
+ duration = 5475
239
+ }
240
+
241
+ give_claims = { area = hudavendigar_area }
242
+ give_claims = { area = aydin_area }
243
+ give_claims = { area = bulgaria_area }
244
+ give_claims = { area = silistria_area }
245
+ give_claims = { area = macedonia_area }
246
+
247
+ custom_tooltip = " "
248
+
249
+ complex_dynamic_effect = {
250
+ first_custom_tooltip = BYZ_if_we_are_allied_with_PAP
251
+ first_limit = "
252
+ alliance_with = PAP
253
+ "
254
+ first_effect = "
255
+ custom_tooltip = BYZ_extra_mercenary_cost_for_union_tt
256
+ hidden_effect = {
257
+ add_country_modifier = {
258
+ name = BYZ_extra_mercenary_cost_for_union
259
+ duration = 5475
260
+ hidden = yes
261
+ }
262
+ }
263
+ "
264
+ }
265
+ }
266
+ }
267
+
268
+ BYZ_bar = {
269
+ icon = tame_the_magnates
270
+ required_missions = { BYZ_false_despots BYZ_greece }
271
+ position = 3
272
+ provinces_to_highlight = {
273
+ OR = {
274
+ area = rascia_area
275
+ area = serbia_area
276
+ }
277
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
278
+ }
279
+ trigger = {
280
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
281
+ OR = {
282
+ area = rascia_area
283
+ area = serbia_area
284
+ }
285
+ value = 7 #out of 9
286
+ }
287
+ }
288
+ effect = {
289
+ give_claims = { region = balkan_region }
290
+ give_claims = { area = carinthia_area }
291
+
292
+ custom_tooltip = " "
293
+
294
+ add_country_modifier = {
295
+ name = BYZ_western_flank_1
296
+ duration = -1
297
+ }
298
+
299
+ country_event_with_option_insight = {
300
+ id = MEE_Byzantine_Events.1
301
+ option_1 = "
302
+ add_country_modifier = {
303
+ name = MEE_strong_example_against_the_serbian_aristocrats
304
+ duration = 10950
305
+ }
306
+
307
+ add_mil_power = 100
308
+ "
309
+ option_2 = "
310
+ add_country_modifier = {
311
+ name = MEE_amiable_treatment
312
+ duration = 9125
313
+ }
314
+
315
+ add_dip_power = 100
316
+ "
317
+ }
318
+ }
319
+ }
320
+
321
+ BYZ_illyria = {
322
+ icon = secure_the_sava
323
+ required_missions = { BYZ_bar }
324
+ position = 4
325
+ provinces_to_highlight = {
326
+ OR = {
327
+ area = croatia_area
328
+ area = east_adriatic_coast_area
329
+ area = bosnia_area
330
+ area = slavonia_area
331
+ area = carinthia_area
332
+ }
333
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
334
+ }
335
+ trigger = {
336
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
337
+ OR = {
338
+ area = croatia_area
339
+ area = east_adriatic_coast_area
340
+ area = bosnia_area
341
+ area = slavonia_area
342
+ area = carinthia_area
343
+ }
344
+ value = 15
345
+ }
346
+ }
347
+ effect = {
348
+ custom_tooltip = BYZ_western_flank_1_2
349
+ hidden_effect = {
350
+ remove_country_modifier = BYZ_western_flank_1
351
+ add_country_modifier = {
352
+ name = BYZ_western_flank_2
353
+ duration = -1
354
+ }
355
+ }
356
+
357
+ custom_tooltip = " "
358
+
359
+ give_claims = { area = transdanubia_area }
360
+ give_claims = { area = alfold_area }
361
+ give_claims = { area = venetia_area }
362
+ give_claims = { area = po_valley_area }
363
+ give_claims = { area = emilia_romagna_area }
364
+ give_claims = { area = lombardy_area }
365
+ give_claims = { area = piedmont_area }
366
+ give_claims = { area = liguria_area }
367
+
368
+ custom_tooltip = " "
369
+
370
+ add_army_tradition_or_mil_power = { amount = 10 }
371
+ }
372
+ }
373
+
374
+ BYZ_belisarius_foe = {
375
+ icon = kingdom_of_lombardy
376
+ required_missions = { BYZ_illyria }
377
+ position = 5
378
+ provinces_to_highlight = {
379
+ OR = {
380
+ area = venetia_area
381
+ area = po_valley_area
382
+ area = emilia_romagna_area
383
+ area = lombardy_area
384
+ area = piedmont_area
385
+ area = liguria_area
386
+ }
387
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
388
+ }
389
+ trigger = {
390
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
391
+ OR = {
392
+ area = venetia_area
393
+ area = po_valley_area
394
+ area = emilia_romagna_area
395
+ area = lombardy_area
396
+ area = piedmont_area
397
+ area = liguria_area
398
+ }
399
+ value = 18
400
+ }
401
+ }
402
+ effect = {
403
+ custom_tooltip = BYZ_western_flank_2_3
404
+ hidden_effect = {
405
+ remove_country_modifier = BYZ_western_flank_2
406
+ add_country_modifier = {
407
+ name = BYZ_western_flank_3
408
+ duration = -1
409
+ }
410
+ }
411
+
412
+ custom_tooltip = " "
413
+
414
+ give_claims = { area = tuscany_area }
415
+ give_claims = { area = lazio_area }
416
+ give_claims = { area = central_italy_area }
417
+ give_claims = { area = tuscany_area }
418
+
419
+ give_claims = { area = inner_austria_area }
420
+ give_claims = { area = austria_proper_area }
421
+ give_claims = { area = tirol_area }
422
+ give_claims = { area = east_bavaria_area }
423
+ give_claims = { area = lower_bavaria_area }
424
+ give_claims = { area = upper_bavaria_area }
425
+ give_claims = { area = upper_swabia_area }
426
+ give_claims = { area = lower_swabia_area }
427
+ give_claims = { area = switzerland_area }
428
+
429
+ give_claims = { area = france_region }
430
+
431
+ custom_tooltip = " "
432
+
433
+ country_event_with_insight = {
434
+ id = MEE_Byzantine_Events.3
435
+ insight_tooltip = BYZ_great_general
436
+ }
437
+ }
438
+ }
439
+
440
+ BYZ_justinians_ambition = {
441
+ icon = byz_justinians_ambition
442
+ required_missions = { BYZ_belisarius_foe BYZ_magna_graecia }
443
+ position = 6
444
+ provinces_to_highlight = {
445
+ province_id = 118
446
+ }
447
+ trigger = {
448
+ BYZ_is_not_latin_empire = yes
449
+ 118 = {
450
+ owned_by = ROOT
451
+ is_state_core = ROOT
452
+ }
453
+ }
454
+ effect = {
455
+ country_event_with_effect_insight = {
456
+ id = MEE_Byzantine_Events.4
457
+
458
+ effect = "
459
+ custom_tooltip = BYZ_unlock_justinians_empire_decision
460
+
461
+ custom_tooltip = \" \"
462
+
463
+ add_permanent_power_projection = {
464
+ type = byz_permanent_power_projection
465
+ amount = 5
466
+ }
467
+
468
+ if = {
469
+ limit = {
470
+ BYZ_has_rights_of_man = yes
471
+ }
472
+ custom_tooltip = \" \"
473
+ custom_tooltip = BYZ_double_conquer_chance
474
+ }
475
+ "
476
+ }
477
+ }
478
+ }
479
+
480
+ BYZ_iberia = {
481
+ icon = mission_plus_ultra
482
+ required_missions = { BYZ_carthage }
483
+ position = 7
484
+ provinces_to_highlight = {
485
+ region = iberia_region
486
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
487
+ }
488
+ trigger = {
489
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
490
+ region = iberia_region
491
+ value = 40 #out of 64
492
+ }
493
+ }
494
+ effect = {
495
+ custom_tooltip = BYZ_southern_provinces_1_2
496
+ hidden_effect = {
497
+ remove_country_modifier = BYZ_southern_provinces_1
498
+ add_country_modifier = {
499
+ name = BYZ_southern_provinces_2
500
+ duration = -1
501
+ }
502
+ }
503
+
504
+ custom_tooltip = " "
505
+
506
+ add_country_modifier_for_age = {
507
+ name = BYZ_roman_vigour
508
+ age = age_of_reformation
509
+ else = "
510
+ add_army_tradition_or_mil_power = { amount = 25 }
511
+
512
+ custom_tooltip = \" \"
513
+
514
+ add_mil_power = 100
515
+ "
516
+ }
517
+ }
518
+ }
519
+ }
520
+
521
+ MEE_BYZ_conquest_3 = {
522
+ slot = 3
523
+ generic = no
524
+ ai = yes
525
+ potential_on_load = {
526
+ has_dlc = "King of Kings"
527
+ }
528
+ potential = {
529
+ OR = {
530
+ tag = BYZ
531
+ AND = {
532
+ was_tag = BYZ
533
+ tag = ROM
534
+ }
535
+ AND = {
536
+ tag = LAE
537
+ has_country_flag = has_byz_missions
538
+ }
539
+ }
540
+ NOT = { map_setup = map_setup_random }
541
+ has_dlc = "King of Kings"
542
+ }
543
+ has_country_shield = yes
544
+
545
+ BYZ_greece = {
546
+ icon = cross_the_pindus
547
+ required_missions = { BYZ_impending_doom }
548
+ position = 2
549
+ provinces_to_highlight = {
550
+ OR = {
551
+ area = thrace_area
552
+ area = macedonia_area
553
+ area = northern_greece_area
554
+ }
555
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
556
+ }
557
+ trigger = {
558
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
559
+ OR = {
560
+ area = thrace_area
561
+ area = macedonia_area
562
+ area = northern_greece_area
563
+ }
564
+ value = 9
565
+ }
566
+ }
567
+ effect = {
568
+ give_claims = { area = rascia_area }
569
+ give_claims = { area = serbia_area }
570
+ give_claims = { area = aegean_archipelago_area }
571
+ give_claims = { id = 163 } #Crete
572
+ give_claims = { id = 321 } #Cyprus
573
+
574
+ custom_tooltip = " "
575
+
576
+ add_years_of_income = 0.5
577
+ add_yearly_manpower = 0.5
578
+
579
+ custom_tooltip = " "
580
+
581
+ country_event_with_effect_insight = {
582
+ id = MEE_Byzantine_Events.6
583
+
584
+ effect = "
585
+ add_country_modifier = {
586
+ name = BYZ_reversal_of_downfall
587
+ duration = 10950
588
+ }
589
+
590
+ add_power_projection_mission = {
591
+ amount = 25
592
+ }
593
+ "
594
+ }
595
+ }
596
+ }
597
+
598
+ BYZ_bulgaria = {
599
+ icon = despot_stefans_legacy
600
+ required_missions = { BYZ_greece }
601
+ position = 3
602
+ provinces_to_highlight = {
603
+ OR = {
604
+ area = bulgaria_area
605
+ area = silistria_area
606
+ }
607
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
608
+ }
609
+ trigger = {
610
+ bulgaria_area = {
611
+ country_or_non_sovereign_subject_holds = ROOT
612
+ type = all
613
+ }
614
+ silistria_area = {
615
+ country_or_non_sovereign_subject_holds = ROOT
616
+ type = all
617
+ }
618
+ }
619
+ effect = {
620
+ hidden_effect = {
621
+ add_country_modifier = {
622
+ name = BYZ_no_slot_bulgarian
623
+ duration = -1
624
+ }
625
+ }
626
+ add_accepted_culture = bulgarian
627
+ custom_tooltip = BYZ_bulgarian_no_slot_taken
628
+
629
+ custom_tooltip = " "
630
+
631
+ create_general_with_pips = { tradition = 50 add_shock = 1 }
632
+
633
+ custom_tooltip = " "
634
+
635
+ give_claims = { area = wallachia_area }
636
+ give_claims = { area = moldavia_area }
637
+
638
+ custom_tooltip = " "
639
+
640
+ 4704 = {
641
+ add_permanent_province_modifier = {
642
+ name = BYZ_new_constantinople
643
+ duration = -1
644
+ }
645
+ }
646
+ }
647
+ }
648
+
649
+ BYZ_aegean_islands = {
650
+ icon = byz_aegean_islands
651
+ required_missions = { BYZ_coast }
652
+ position = 4
653
+ provinces_to_highlight = {
654
+ OR = {
655
+ area = aegean_archipelago_area
656
+ province_id = 163 #crete
657
+ }
658
+ }
659
+ trigger = {
660
+ aegean_archipelago_area = {
661
+ type = all
662
+ country_or_non_sovereign_subject_holds = ROOT
663
+ }
664
+ 163 = { country_or_non_sovereign_subject_holds = ROOT }
665
+ }
666
+ effect = {
667
+ 151 = {
668
+ add_trade_modifier = {
669
+ who = ROOT
670
+ duration = -1
671
+ power = 50
672
+ key = BYZ_latin_delusions
673
+ }
674
+ }
675
+
676
+ custom_tooltip = " "
677
+
678
+ custom_tooltip = BYZ_distribute_5_base_tax_among_greek_provinces
679
+ hidden_effect = {
680
+ for = {
681
+ amount = 5
682
+ effect = "
683
+ random_owned_province = {
684
+ limit = {
685
+ culture = greek
686
+ }
687
+ add_base_tax = 1
688
+ }
689
+ "
690
+ }
691
+ }
692
+ }
693
+ }
694
+
695
+ BYZ_venetian_avarice = {
696
+ icon = overshadow_venice
697
+ required_missions = { BYZ_illyria }
698
+ position = 5
699
+ provinces_to_highlight = {
700
+ province_id = 112
701
+ }
702
+ trigger = {
703
+ owns = 112
704
+ }
705
+ effect = {
706
+ add_navy_tradition = 20
707
+
708
+ custom_tooltip = " "
709
+
710
+ country_event_with_option_insight = {
711
+ id = flavor_byz.1
712
+ option_1 = "
713
+ 112 = {
714
+ custom_tooltip = BYZ_this_province_will_lose_development
715
+ custom_tooltip = \" \"
716
+ add_permanent_province_modifier = {
717
+ name = BYZ_chastening_of_venice
718
+ duration = -1
719
+ }
720
+ }
721
+ capital_scope = {
722
+ add_province_modifier = {
723
+ name = byzantine_treasures_returned
724
+ duration = 7300
725
+ }
726
+ }
727
+ "
728
+ option_2 = "
729
+ if = {
730
+ limit = {
731
+ has_dlc = \"Domination\"
732
+ }
733
+ add_country_modifier = {
734
+ name = BYZ_may_construct_galleass
735
+ duration = -1
736
+ }
737
+ custom_tooltip = BYZ_may_only_build_in_112
738
+ }
739
+ else = {
740
+ 112 = {
741
+ add_province_modifier = {
742
+ name = BYZ_arsenal
743
+ duration = -1
744
+ }
745
+ }
746
+ }
747
+ "
748
+ }
749
+ }
750
+ }
751
+
752
+ BYZ_france = {
753
+ icon = mission_the_french_menace
754
+ required_missions = { BYZ_belisarius_foe }
755
+ position = 6
756
+ provinces_to_highlight = {
757
+ region = france_region
758
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
759
+ }
760
+ trigger = {
761
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
762
+ region = france_region
763
+ value = 56 #out of 70
764
+ }
765
+ }
766
+ effect = {
767
+ custom_tooltip = BYZ_western_flank_3_4
768
+ hidden_effect = {
769
+ remove_country_modifier = BYZ_western_flank_3
770
+ add_country_modifier = {
771
+ name = BYZ_western_flank_4
772
+ duration = -1
773
+ }
774
+ }
775
+
776
+ custom_tooltip = " "
777
+
778
+ add_country_modifier_for_age = {
779
+ name = BYZ_ceasarean_conquests
780
+ age = age_of_reformation
781
+ else = "
782
+ add_army_tradition_or_mil_power = { amount = 25 }
783
+
784
+ custom_tooltip = \" \"
785
+
786
+ add_mil_power = 100
787
+ "
788
+ }
789
+
790
+ custom_tooltip = BYZ_france_ct
791
+ hidden_effect = {
792
+ give_claims = { area = east_midlands_area }
793
+ give_claims = { area = west_midlands_area }
794
+ give_claims = { area = scottish_marches_area }
795
+ give_claims = { area = yorkshire_area }
796
+ give_claims = { area = wessex_area }
797
+ give_claims = { area = home_counties_area }
798
+ give_claims = { area = east_anglia_area }
799
+ give_claims = { area = wales_area }
800
+
801
+ give_claims = { area = romandie_area }
802
+ give_claims = { area = upper_rhineland_area }
803
+ give_claims = { area = romandie_area }
804
+ give_claims = { area = alsace_area }
805
+ give_claims = { area = palatinate_area }
806
+ give_claims = { area = lower_rhineland_area }
807
+ give_claims = { id = 85 } #cologne
808
+ give_claims = { area = north_brabant_area }
809
+ give_claims = { area = brabant_area }
810
+ give_claims = { area = flanders_area }
811
+ give_claims = { area = wallonia_area }
812
+ give_claims = { id = 96 } #zeeland
813
+ }
814
+
815
+ custom_tooltip = " "
816
+
817
+ add_permanent_power_projection = {
818
+ type = byz_permanent_power_projection
819
+ amount = 5
820
+ }
821
+ }
822
+ }
823
+
824
+ BYZ_roman_empire = {
825
+ icon = a_place_among_the_great_powers
826
+ required_missions = { BYZ_egypt BYZ_france BYZ_iberia }
827
+ position = 8
828
+ provinces_to_highlight = {
829
+ BYZ_roman_empire_decision_trigger = yes
830
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
831
+ }
832
+ trigger = {
833
+ tag = ROM
834
+ }
835
+ effect = {
836
+ custom_tooltip = BYZ_unite_all_modifiers_into_one
837
+ hidden_effect = {
838
+ remove_country_modifier = BYZ_western_flank_4
839
+ remove_country_modifier = BYZ_southern_provinces_2
840
+ remove_country_modifier = BYZ_eastern_flank_3
841
+ add_country_modifier = {
842
+ name = BYZ_united_modifier
843
+ duration = -1
844
+ }
845
+ }
846
+
847
+ custom_tooltip = " "
848
+
849
+ custom_tooltip = BYZ_rebel_sentiment_will_fire_more_rarely
850
+ set_country_flag = BYZ_less_rebel_sentiment
851
+
852
+ custom_tooltip = " "
853
+
854
+ add_permanent_power_projection = {
855
+ type = byz_permanent_power_projection
856
+ amount = 10
857
+ }
858
+ }
859
+ }
860
+ }
861
+
862
+ MEE_BYZ_defense_4 = {
863
+ slot = 4
864
+ generic = no
865
+ ai = yes
866
+ potential_on_load = {
867
+ has_dlc = "King of Kings"
868
+ }
869
+ potential = {
870
+ OR = {
871
+ tag = BYZ
872
+ AND = {
873
+ was_tag = BYZ
874
+ tag = ROM
875
+ }
876
+ AND = {
877
+ tag = LAE
878
+ has_country_flag = has_byz_missions
879
+ }
880
+ }
881
+ NOT = { map_setup = map_setup_random }
882
+ has_dlc = "King of Kings"
883
+ }
884
+ has_country_shield = yes
885
+
886
+ BYZ_hexamilion = {
887
+ icon = pacify_the_albanian_lands
888
+ required_missions = { }
889
+ position = 1
890
+ provinces_to_highlight = {
891
+ province_id = 4701
892
+ OR = {
893
+ NOT = { owned_by = ROOT }
894
+ NOT = { base_manpower = 4 }
895
+ }
896
+ }
897
+ trigger = {
898
+ 4701 = {
899
+ base_manpower = 4
900
+ owned_by = ROOT
901
+ }
902
+ employed_advisor = { category = mil }
903
+ }
904
+ effect = {
905
+ country_event_with_option_insight = {
906
+ id = MEE_Byzantine_Events.11
907
+ option_1 = "
908
+ if = {
909
+ limit = {
910
+ 145 = { owned_by = ROOT has_building = fort_15th }
911
+ }
912
+ 145 = { remove_building = fort_15th }
913
+ }
914
+ if = {
915
+ limit = {
916
+ 4701 = { owned_by = ROOT NOT = { has_fort_building_trigger = yes } }
917
+ }
918
+ 4701 = {
919
+ add_building = fort_15th
920
+ }
921
+ }
922
+ custom_tooltip = \" \"
923
+ custom_tooltip = BYZ_unlock_decision_to_upgrade_hexamilion_wall
924
+ "
925
+ option_2 = "
926
+ custom_tooltip = BYZ_upgrading_theodosian_walls_will_be_25_cheaper
927
+ "
928
+ }
929
+ }
930
+ }
931
+ }
932
+
933
+ MEE_BYZ_conquest_4 = {
934
+ slot = 4
935
+ generic = no
936
+ ai = yes
937
+ potential_on_load = {
938
+ has_dlc = "King of Kings"
939
+ }
940
+ potential = {
941
+ OR = {
942
+ tag = BYZ
943
+ AND = {
944
+ was_tag = BYZ
945
+ tag = ROM
946
+ }
947
+ AND = {
948
+ tag = LAE
949
+ has_country_flag = has_byz_missions
950
+ }
951
+ }
952
+ NOT = { map_setup = map_setup_random }
953
+ has_dlc = "King of Kings"
954
+ }
955
+ has_country_shield = yes
956
+
957
+ BYZ_coast = {
958
+ icon = capture_adriatic_ports
959
+ required_missions = { BYZ_greece }
960
+ position = 3
961
+ provinces_to_highlight = {
962
+ OR = {
963
+ area = aydin_area
964
+ area = hudavendigar_area
965
+ }
966
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
967
+ }
968
+ trigger = {
969
+ aydin_area = {
970
+ type = all
971
+ country_or_non_sovereign_subject_holds = ROOT
972
+ }
973
+ hudavendigar_area = {
974
+ type = all
975
+ country_or_non_sovereign_subject_holds = ROOT
976
+ }
977
+ owns = 318 #sugla - smyrna
978
+ }
979
+ effect = {
980
+ if = {
981
+ limit = {
982
+ culture_group = byzantine
983
+ }
984
+ 318 = {
985
+ change_culture = greek
986
+ }
987
+
988
+ custom_tooltip = " "
989
+
990
+ set_country_flag = BYZ_conversions
991
+ custom_tooltip = BYZ_provinces_will_convert_to_greek_in_asia_minor
992
+ #.7
993
+
994
+ custom_tooltip = " "
995
+ }
996
+ else = {
997
+ add_accepted_culture_or_dip_power = { culture = turkish dip_reward = yes }
998
+
999
+ custom_tooltip = " "
1000
+ }
1001
+
1002
+ give_claims = { region = anatolia_region }
1003
+ give_claims = { id = 2410 } #theodoro
1004
+ give_claims = { id = 2447 } #mantrega
1005
+ give_claims = { id = 285 } #caffa
1006
+ }
1007
+ }
1008
+
1009
+ BYZ_avenge_1071 = {
1010
+ icon = byz_avenge_1071
1011
+ required_missions = { BYZ_coast }
1012
+ position = 5
1013
+ provinces_to_highlight = {
1014
+ region = anatolia_region
1015
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1016
+ }
1017
+ trigger = {
1018
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1019
+ region = anatolia_region
1020
+ value = 35 #out of 45
1021
+ }
1022
+ }
1023
+ effect = {
1024
+ add_country_modifier = {
1025
+ name = BYZ_eastern_flank_1
1026
+ duration = -1
1027
+ }
1028
+
1029
+ give_claims = { region = mashriq_region }
1030
+
1031
+ custom_tooltip = " "
1032
+
1033
+ if = {
1034
+ limit = {
1035
+ culture_group = byzantine
1036
+ }
1037
+ custom_tooltip = BYZ_culture_conversion_will_extend
1038
+ custom_tooltip = " "
1039
+ }
1040
+
1041
+ country_event_with_option_insight = {
1042
+ id = MEE_Byzantine_Events.8
1043
+
1044
+ option_1 = "
1045
+ add_accepted_culture_or_dip_power = { culture = turkish dip_reward = yes }
1046
+
1047
+ custom_tooltip = \" \"
1048
+
1049
+ custom_tooltip = BYZ_every_turkish_province
1050
+ tooltip = {
1051
+ add_nationalism = -10
1052
+ }
1053
+ "
1054
+ option_2 = "
1055
+ custom_tooltip = BYZ_culture_conversion_will_be_faster
1056
+ "
1057
+ option_3 = "
1058
+ custom_tooltip = BYZ_every_turkish_province
1059
+ tooltip = {
1060
+ add_province_modifier = {
1061
+ name = BYZ_janissary_recruitment
1062
+ duration = 9125
1063
+ }
1064
+ }
1065
+
1066
+ custom_tooltip = BYZ_unlock_janissary_mercenary_company
1067
+ "
1068
+ }
1069
+ }
1070
+ }
1071
+
1072
+ BYZ_syria = {
1073
+ icon = jerusalem
1074
+ required_missions = { BYZ_avenge_1071 }
1075
+ position = 6
1076
+ provinces_to_highlight = {
1077
+ OR = {
1078
+ area = aleppo_area
1079
+ area = syria_area
1080
+ area = syrian_desert_area
1081
+ area = palestine_area
1082
+ area = trans_jordan_area
1083
+ }
1084
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1085
+ }
1086
+ trigger = {
1087
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1088
+ OR = {
1089
+ area = aleppo_area
1090
+ area = syria_area
1091
+ area = syrian_desert_area
1092
+ area = palestine_area
1093
+ area = trans_jordan_area
1094
+ }
1095
+ value = 13
1096
+ }
1097
+ }
1098
+ effect = {
1099
+ custom_tooltip = BYZ_eastern_flank_1_2
1100
+ hidden_effect = {
1101
+ remove_country_modifier = BYZ_eastern_flank_1
1102
+ add_country_modifier = {
1103
+ name = BYZ_eastern_flank_2
1104
+ duration = -1
1105
+ }
1106
+ }
1107
+
1108
+ custom_tooltip = " "
1109
+
1110
+ give_claims = { region = egypt_region }
1111
+
1112
+ custom_tooltip = " "
1113
+
1114
+ if = {
1115
+ limit = {
1116
+ has_dlc = "Third Rome"
1117
+ }
1118
+ custom_tooltip = " "
1119
+
1120
+ set_country_flag = BYZ_extra_patriarch_authority
1121
+ custom_tooltip = BYZ_consecrating_metropolitan
1122
+ }
1123
+ }
1124
+ }
1125
+
1126
+ BYZ_egypt = {
1127
+ icon = control_the_means_of_transaction
1128
+ required_missions = { BYZ_syria }
1129
+ position = 7
1130
+ provinces_to_highlight = {
1131
+ region = egypt_region
1132
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1133
+ NOT = { area = lower_nubia_area }
1134
+ }
1135
+ trigger = {
1136
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1137
+ region = egypt_region
1138
+ NOT = { area = lower_nubia_area }
1139
+ value = 22
1140
+ }
1141
+ }
1142
+ effect = {
1143
+ custom_tooltip = BYZ_eastern_flank_2_3
1144
+ hidden_effect = {
1145
+ remove_country_modifier = BYZ_eastern_flank_2
1146
+ add_country_modifier = {
1147
+ name = BYZ_eastern_flank_3
1148
+ duration = -1
1149
+ }
1150
+ }
1151
+
1152
+ custom_tooltip = " "
1153
+
1154
+ give_claims = { area = tabuk_area }
1155
+ give_claims = { area = medina_area }
1156
+ give_claims = { area = mecca_area }
1157
+
1158
+ give_claims = { area = corsica_sardinia_area }
1159
+ give_claims = { area = barbary_coast_area }
1160
+ give_claims = { area = kabylia_area }
1161
+ give_claims = { area = tunisia_area }
1162
+ give_claims = { area = djerba_area }
1163
+ give_claims = { area = tripolitania_area }
1164
+ }
1165
+ }
1166
+
1167
+ BYZ_breadbasket = {
1168
+ icon = prosperity_for_all
1169
+ required_missions = { BYZ_egypt }
1170
+ position = 8
1171
+ provinces_to_highlight = {
1172
+ OR = {
1173
+ province_id = 2316 #al gharbia
1174
+ province_id = 362 #rashid
1175
+ province_id = 363 #dumyat
1176
+ province_id = 4316 #sharqiya
1177
+ }
1178
+ OR = {
1179
+ NOT = { owned_by = ROOT }
1180
+ NOT = { has_production_building_trigger = yes }
1181
+ NOT = { development = 20 }
1182
+ NOT = { has_manufactory_trigger = yes }
1183
+ }
1184
+ }
1185
+ trigger = {
1186
+ 2316 = {
1187
+ owned_by = ROOT
1188
+ has_production_building_trigger = yes
1189
+ development = 20
1190
+ has_manpower_building_trigger = yes
1191
+ }
1192
+ 362 = {
1193
+ owned_by = ROOT
1194
+ has_production_building_trigger = yes
1195
+ development = 20
1196
+ has_manpower_building_trigger = yes
1197
+ }
1198
+ 363 = {
1199
+ owned_by = ROOT
1200
+ has_production_building_trigger = yes
1201
+ development = 20
1202
+ has_manpower_building_trigger = yes
1203
+ }
1204
+ 4316 = {
1205
+ owned_by = ROOT
1206
+ has_production_building_trigger = yes
1207
+ development = 20
1208
+ has_manpower_building_trigger = yes
1209
+ }
1210
+ }
1211
+ effect = {
1212
+ 358 = {
1213
+ add_trade_modifier = {
1214
+ who = ROOT
1215
+ duration = -1
1216
+ power = 100
1217
+ key = BYZ_annona_shipments
1218
+ }
1219
+ }
1220
+
1221
+ custom_tooltip = " "
1222
+
1223
+ capital_scope = {
1224
+ add_permanent_province_modifier = {
1225
+ name = BYZ_grain_shipments
1226
+ duration = -1
1227
+ }
1228
+ }
1229
+
1230
+ # custom_tooltip = " "
1231
+
1232
+ custom_tooltip = BYZ_distribute_10_10_0_dev_in_anatolia_and_balkans
1233
+ hidden_effect = {
1234
+ for = {
1235
+ amount = 10
1236
+ effect = "
1237
+ random_owned_province = {
1238
+ limit = {
1239
+ OR = {
1240
+ region = balkan_region
1241
+ region = anatolia_region
1242
+ }
1243
+ }
1244
+ add_base_tax = 1
1245
+ }
1246
+ "
1247
+ }
1248
+ for = {
1249
+ amount = 10
1250
+ effect = "
1251
+ random_owned_province = {
1252
+ limit = {
1253
+ OR = {
1254
+ region = balkan_region
1255
+ region = anatolia_region
1256
+ }
1257
+ }
1258
+ add_base_production = 1
1259
+ }
1260
+ "
1261
+ }
1262
+ }
1263
+ }
1264
+ }
1265
+ }
1266
+
1267
+ MEE_BYZ_defense_5 = {
1268
+ slot = 5
1269
+ generic = no
1270
+ ai = yes
1271
+ potential_on_load = {
1272
+ has_dlc = "King of Kings"
1273
+ }
1274
+ potential = {
1275
+ OR = {
1276
+ tag = BYZ
1277
+ AND = {
1278
+ was_tag = BYZ
1279
+ tag = ROM
1280
+ }
1281
+ AND = {
1282
+ tag = LAE
1283
+ has_country_flag = has_byz_missions
1284
+ }
1285
+ }
1286
+ NOT = { map_setup = map_setup_random }
1287
+ has_dlc = "King of Kings"
1288
+ }
1289
+ has_country_shield = yes
1290
+
1291
+ BYZ_reinforce_constantinople = {
1292
+ icon = byz_reinforce_constantinople
1293
+ required_missions = { }
1294
+ position = 1
1295
+ provinces_to_highlight = {
1296
+ province_id = 151
1297
+ OR = {
1298
+ NOT = { owned_by = ROOT }
1299
+ NOT = { base_manpower = 7 }
1300
+ }
1301
+ }
1302
+ trigger = {
1303
+ OR = {
1304
+ 151 = {
1305
+ base_manpower = 7
1306
+ owned_by = ROOT
1307
+ }
1308
+ has_mil_advisor_2 = yes
1309
+ fortification_expert = 1
1310
+ if = {
1311
+ limit = {
1312
+ OR = {
1313
+ has_dlc = "Common Sense"
1314
+ has_dlc = "Res Publica"
1315
+ }
1316
+ }
1317
+ national_focus = mil
1318
+ }
1319
+ else = { hidden_trigger = { always = no } }
1320
+ }
1321
+ }
1322
+ effect = {
1323
+ custom_tooltip = BYZ_unlock_decision_for_theodosian_walls
1324
+ set_country_flag = BYZ_unlock_decision_to_upgrade_theodosian_wall_flag
1325
+
1326
+ custom_tooltip = " "
1327
+
1328
+ country_event_with_option_insight = {
1329
+ id = MEE_Byzantine_Events.12
1330
+ option_1 = "
1331
+ custom_tooltip = BYZ_we_will_ask_for_serbian_help
1332
+ SER = {
1333
+ country_event = { id = MEE_Byzantine_Events.15 }
1334
+ }
1335
+ "
1336
+ option_2 = "
1337
+ 151 = {
1338
+ add_base_tax = -2
1339
+ add_province_modifier = {
1340
+ name = BYZ_theodosian_wall_1
1341
+ duration = -1
1342
+ }
1343
+ }
1344
+
1345
+ custom_tooltip = BYZ_if_it_is_being_upgraded
1346
+ "
1347
+ option_3 = "
1348
+ add_prestige_or_monarch_power = { amount = 20 }
1349
+ "
1350
+ }
1351
+ }
1352
+ }
1353
+
1354
+ BYZ_defence_in_depth = {
1355
+ icon = mission_conquer_mewar
1356
+ required_missions = { BYZ_reinforce_constantinople BYZ_hexamilion }
1357
+ position = 2
1358
+ provinces_to_highlight = {
1359
+ }
1360
+ trigger = {
1361
+ OR = {
1362
+ num_of_hired_mercenary_companies = 3
1363
+ AND = {
1364
+ army_size_percentage = 1
1365
+ NOT = { num_of_mercenaries = 1 }
1366
+ }
1367
+ custom_trigger_tooltip = {
1368
+ tooltip = BYZ_upgraded_either_walls_to_level_2
1369
+ OR = {
1370
+ 151 = { has_province_modifier = BYZ_theodosian_wall_2 } #should't be possible without ownership anyway.
1371
+ 4701 = { has_province_modifier = BYZ_hexamilion_wall_2 }
1372
+ }
1373
+ }
1374
+ }
1375
+ }
1376
+ effect = {
1377
+ add_army_tradition_or_mil_power = { amount = 10 }
1378
+
1379
+ custom_tooltip = " "
1380
+
1381
+ complex_dynamic_effect = { #I will not rethink this mission reward!
1382
+ first_custom_tooltip = BYZ_if_done_via_mercenary_companies
1383
+ first_limit = "num_of_hired_mercenary_companies = 3"
1384
+ first_effect = "
1385
+ add_country_modifier = {
1386
+ name = BYZ_reliance_on_mercenaries
1387
+ duration = 7300
1388
+ }
1389
+ "
1390
+ second_custom_tooltip = BYZ_if_done_via_army_size
1391
+ second_limit = "
1392
+ army_size_percentage = 1
1393
+ NOT = { num_of_mercenaries = 1 }
1394
+ "
1395
+ second_effect = "
1396
+ add_country_modifier = {
1397
+ name = BYZ_paroikoi_recruimtnet
1398
+ duration = 5475
1399
+ }
1400
+ "
1401
+ third_custom_tooltip = BYZ_if_done_via_upgrading_walls
1402
+ third_limit = "
1403
+ OR = {
1404
+ 151 = { has_province_modifier = BYZ_theodosian_wall_2 } #should't be possible without ownership anyway.
1405
+ 4701 = { has_province_modifier = BYZ_hexamilion_wall_2 }
1406
+ }
1407
+ "
1408
+ third_effect = "
1409
+ add_country_modifier = {
1410
+ name = BYZ_spirit_of_resistance
1411
+ duration = 7300
1412
+ }
1413
+ "
1414
+ }
1415
+ }
1416
+ }
1417
+ }
1418
+
1419
+ MEE_BYZ_conquest_5 = {
1420
+ slot = 5
1421
+ generic = no
1422
+ ai = yes
1423
+ potential_on_load = {
1424
+ has_dlc = "King of Kings"
1425
+ }
1426
+ potential = {
1427
+ OR = {
1428
+ tag = BYZ
1429
+ AND = {
1430
+ was_tag = BYZ
1431
+ tag = ROM
1432
+ }
1433
+ AND = {
1434
+ tag = LAE
1435
+ has_country_flag = has_byz_missions
1436
+ }
1437
+ }
1438
+ NOT = { map_setup = map_setup_random }
1439
+ has_dlc = "King of Kings"
1440
+ }
1441
+ has_country_shield = yes
1442
+
1443
+ BYZ_pontic_empire = {
1444
+ icon = byz_pontic_empire
1445
+ required_missions = { BYZ_coast }
1446
+ position = 4
1447
+ provinces_to_highlight = {
1448
+ OR = {
1449
+ AND = {
1450
+ OR = {
1451
+ province_id = 330
1452
+ province_id = 2410
1453
+ }
1454
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1455
+ }
1456
+ owned_by = TRE
1457
+ owned_by = FEO
1458
+ }
1459
+ }
1460
+ trigger = {
1461
+ owns_or_non_sovereign_subject_of = 330
1462
+ owns_or_non_sovereign_subject_of = 2410
1463
+ NOT = { exists = TRE }
1464
+ NOT = { exists = FEO }
1465
+ }
1466
+ effect = {
1467
+ give_claims = { area = imereti_area }
1468
+ give_claims = { area = kartli_kakheti_area }
1469
+ give_claims = { area = samtskhe_area }
1470
+ give_claims = { area = circassia_area }
1471
+ give_claims = { area = armenia_area }
1472
+ give_claims = { area = shirvan_area }
1473
+
1474
+ custom_tooltip = " "
1475
+
1476
+ country_event_with_effect_insight = {
1477
+ id = MEE_Byzantine_Events.10
1478
+ effect = "
1479
+ 330 = {
1480
+ set_center_level_2_center_of_trade = yes #NOTE: this vanilla scripted effect is overwritten
1481
+ }
1482
+ custom_tooltip = \" \"
1483
+ add_country_modifier = {
1484
+ name = BYZ_offshoots_defeated
1485
+ duration = -1
1486
+ }
1487
+ add_power_projection_mission = { amount = 25 }
1488
+ "
1489
+ }
1490
+ }
1491
+ }
1492
+
1493
+ BYZ_persians = {
1494
+ icon = mission_persian_soldiers
1495
+ required_missions = { BYZ_pontic_empire }
1496
+ position = 5
1497
+ provinces_to_highlight = {
1498
+ OR = {
1499
+ AND = {
1500
+ OR = {
1501
+ area = imereti_area
1502
+ area = kartli_kakheti_area
1503
+ area = samtskhe_area
1504
+ area = circassia_area
1505
+ area = armenia_area
1506
+ area = shirvan_area
1507
+ }
1508
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1509
+ }
1510
+ AND = {
1511
+ owner = {
1512
+ culture_group = iranian
1513
+ total_development = 300
1514
+ NOT = {
1515
+ ROOT = {
1516
+ has_won_war_against = {
1517
+ who = PREV
1518
+ max_years_since = 10
1519
+ }
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ trigger = {
1527
+ OR = {
1528
+ custom_trigger_tooltip = {
1529
+ tooltip = BYZ_won_war_against_persian
1530
+ any_country = {
1531
+ culture_group = iranian
1532
+ total_development = 300
1533
+ ROOT = {
1534
+ has_won_war_against = {
1535
+ who = PREV
1536
+ max_years_since = 10
1537
+ }
1538
+ }
1539
+ }
1540
+ }
1541
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1542
+ OR = {
1543
+ area = imereti_area
1544
+ area = kartli_kakheti_area
1545
+ area = samtskhe_area
1546
+ area = circassia_area
1547
+ area = armenia_area
1548
+ area = shirvan_area
1549
+ }
1550
+ value = 18
1551
+ }
1552
+ }
1553
+ }
1554
+ effect = {
1555
+ add_country_modifier = {
1556
+ name = BYZ_champions_of_the_east
1557
+ duration = 14600
1558
+ }
1559
+
1560
+ add_permanent_power_projection = {
1561
+ type = byz_permanent_power_projection
1562
+ amount = 5
1563
+ }
1564
+
1565
+ custom_tooltip = " "
1566
+
1567
+ simple_dynamic_effect = {
1568
+ first_custom_tooltip = BYZ_if_done_via_conquest
1569
+ first_limit = "
1570
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1571
+ OR = {
1572
+ area = imereti_area
1573
+ area = kartli_kakheti_area
1574
+ area = samtskhe_area
1575
+ area = circassia_area
1576
+ area = armenia_area
1577
+ area = shirvan_area
1578
+ }
1579
+ value = 18
1580
+ }
1581
+ "
1582
+ first_effect = "
1583
+ custom_tooltip = BYZ_the_conquered_areas_will_get_separatism
1584
+ hidden_effect = {
1585
+ every_owned_province = {
1586
+ limit = {
1587
+ OR = {
1588
+ area = imereti_area
1589
+ area = kartli_kakheti_area
1590
+ area = samtskhe_area
1591
+ area = circassia_area
1592
+ area = armenia_area
1593
+ area = shirvan_area
1594
+ }
1595
+ }
1596
+ add_nationalism = -10
1597
+ }
1598
+ }
1599
+ "
1600
+ second_custom_tooltip = BYZ_if_done_via_war
1601
+ second_limit = "
1602
+ any_country = {
1603
+ culture_group = iranian
1604
+ total_development = 300
1605
+ ROOT = {
1606
+ has_won_war_against = {
1607
+ who = PREV
1608
+ max_years_since = 10
1609
+ }
1610
+ }
1611
+ }
1612
+ "
1613
+ second_effect = "
1614
+ create_general_with_pips = { tradition = 80 add_siege = 1 }
1615
+ "
1616
+ }
1617
+ }
1618
+ }
1619
+
1620
+ BYZ_mesopotamia = {
1621
+ icon = mission_into_persia_2
1622
+ required_missions = { BYZ_avenge_1071 }
1623
+ position = 6
1624
+ provinces_to_highlight = {
1625
+ OR = {
1626
+ area = al_jazira_area
1627
+ area = iraq_arabi_area
1628
+ area = basra_area
1629
+ }
1630
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1631
+ }
1632
+ trigger = {
1633
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1634
+ OR = {
1635
+ area = al_jazira_area
1636
+ area = iraq_arabi_area
1637
+ area = basra_area
1638
+ }
1639
+ value = 10
1640
+ }
1641
+ }
1642
+ effect = {
1643
+ custom_tooltip = BYZ_every_province_for_mission
1644
+ tooltip = {
1645
+ add_province_modifier = {
1646
+ name = BYZ_fertile_valleys
1647
+ duration = 9125
1648
+ }
1649
+ }
1650
+ hidden_effect = {
1651
+ al_jazira_area = {
1652
+ limit = {
1653
+ country_or_non_sovereign_subject_holds = ROOT
1654
+ }
1655
+ add_province_modifier = {
1656
+ name = BYZ_fertile_valleys
1657
+ duration = 9125
1658
+ }
1659
+ }
1660
+ iraq_arabi_area = {
1661
+ limit = {
1662
+ country_or_non_sovereign_subject_holds = ROOT
1663
+ }
1664
+ add_province_modifier = {
1665
+ name = BYZ_fertile_valleys
1666
+ duration = 9125
1667
+ }
1668
+ }
1669
+ basra_area = {
1670
+ limit = {
1671
+ country_or_non_sovereign_subject_holds = ROOT
1672
+ }
1673
+ add_province_modifier = {
1674
+ name = BYZ_fertile_valleys
1675
+ duration = 9125
1676
+ }
1677
+ }
1678
+ }
1679
+
1680
+ add_stability_or_adm_power = yes
1681
+ }
1682
+ }
1683
+
1684
+ BYZ_mecca = {
1685
+ icon = mission_into_arabia
1686
+ required_missions = { BYZ_egypt }
1687
+ position = 8
1688
+ provinces_to_highlight = {
1689
+ OR = {
1690
+ province_id = 384
1691
+ province_id = 385
1692
+ }
1693
+ NOT = { owned_by = ROOT }
1694
+ }
1695
+ trigger = {
1696
+ owns = 384
1697
+ owns = 385
1698
+ }
1699
+ effect = {
1700
+ add_power_projection_mission = { amount = 25 }
1701
+
1702
+ custom_tooltip = " "
1703
+
1704
+ country_event_with_option_insight = {
1705
+ id = MEE_Byzantine_Events.9
1706
+ option_1 = "
1707
+ add_adm_power = 100
1708
+ custom_tooltip = \" \"
1709
+ 385 = {
1710
+ if = {
1711
+ limit = {
1712
+ NOT = { has_tax_building_trigger = yes }
1713
+ }
1714
+ add_building = cathedral
1715
+ }
1716
+ else = {
1717
+ add_or_upgrade_tax_building = yes
1718
+ }
1719
+ }
1720
+ if = {
1721
+ limit = {
1722
+ BYZ_has_leviathan = yes
1723
+ }
1724
+ custom_tooltip = \" \"
1725
+ custom_tooltip = BYZ_kaaba_but_only_gives_prestige_and_half_of_religious_unity
1726
+ }
1727
+ "
1728
+ option_2 = "
1729
+ add_dip_power = 100
1730
+ custom_tooltip = \" \"
1731
+ custom_tooltip = BYZ_relations
1732
+ custom_tooltip = \" \"
1733
+ 385 = {
1734
+ add_province_modifier = {
1735
+ name = BYZ_masjid_local_pilgrimages
1736
+ duration = -1
1737
+ }
1738
+ }
1739
+ "
1740
+ }
1741
+ }
1742
+ }
1743
+ }
1744
+
1745
+ MEE_BYZ_economy_1 = {
1746
+ slot = 1
1747
+ generic = no
1748
+ ai = yes
1749
+ potential_on_load = {
1750
+ has_dlc = "King of Kings"
1751
+ }
1752
+ potential = {
1753
+ OR = {
1754
+ tag = BYZ
1755
+ AND = {
1756
+ was_tag = BYZ
1757
+ tag = ROM
1758
+ }
1759
+ AND = {
1760
+ tag = LAE
1761
+ has_country_flag = has_byz_missions
1762
+ }
1763
+ }
1764
+ NOT = { map_setup = map_setup_random }
1765
+ has_dlc = "King of Kings"
1766
+ }
1767
+ has_country_shield = yes
1768
+
1769
+ BYZ_economic_independence = {
1770
+ icon = medici_bank_ledgers
1771
+ required_missions = { BYZ_tarnished_state }
1772
+ position = 10
1773
+ provinces_to_highlight = {
1774
+ OR = {
1775
+ AND = {
1776
+ OR = {
1777
+ owned_by = GEN
1778
+ owned_by = VEN
1779
+ }
1780
+ NOT = {
1781
+ owner = {
1782
+ ROOT = {
1783
+ has_won_war_against = { who = PREV max_years_since = 50 }
1784
+ }
1785
+ }
1786
+ }
1787
+ }
1788
+ province_id = 151
1789
+ }
1790
+ }
1791
+ trigger = {
1792
+ custom_trigger_tooltip = {
1793
+ tooltip = BYZ_has_integrated_galata
1794
+ NOT = {
1795
+ 151 = {
1796
+ has_province_modifier = BYZ_galata
1797
+ }
1798
+ }
1799
+ }
1800
+ NOT = { has_estate_privilege = estate_burghers_reliance_on_republics }
1801
+ NOT = { has_estate_privilege = estate_burghers_exkousseiai_for_latins }
1802
+ OR = {
1803
+ 151 = {
1804
+ trade_share = {
1805
+ country = ROOT
1806
+ share = 80
1807
+ }
1808
+ }
1809
+ AND = {
1810
+ if = {
1811
+ limit = {
1812
+ exists = GEN
1813
+ }
1814
+ has_won_war_against = { who = GEN max_years_since = 50 }
1815
+ }
1816
+ else = {
1817
+ GEN = {
1818
+ any_core_province = {
1819
+ country_or_non_sovereign_subject_holds = ROOT
1820
+ }
1821
+ }
1822
+ }
1823
+ if = {
1824
+ limit = {
1825
+ exists = VEN
1826
+ }
1827
+ has_won_war_against = { who = VEN max_years_since = 50 }
1828
+ }
1829
+ else = {
1830
+ VEN = {
1831
+ any_core_province = {
1832
+ country_or_non_sovereign_subject_holds = ROOT
1833
+ }
1834
+ }
1835
+ }
1836
+ }
1837
+ }
1838
+ }
1839
+ effect = {
1840
+ custom_tooltip = BYZ_buff_burgher_loans_no_mercantilism_loss #done via mission_completed
1841
+
1842
+ custom_tooltip = " "
1843
+
1844
+ complex_dynamic_effect = {
1845
+ first_custom_tooltip = BYZ_if_done_via_war
1846
+ first_limit = "
1847
+ if = {
1848
+ limit = { exists = GEN }
1849
+ has_won_war_against = { who = GEN max_years_since = 50 }
1850
+ }
1851
+ else = {
1852
+ GEN = {
1853
+ any_core_province = { country_or_non_sovereign_subject_holds = ROOT }
1854
+ }
1855
+ }
1856
+ if = {
1857
+ limit = { exists = VEN }
1858
+ has_won_war_against = { who = VEN max_years_since = 50 }
1859
+ }
1860
+ else = {
1861
+ VEN = {
1862
+ any_core_province = { country_or_non_sovereign_subject_holds = ROOT }
1863
+ }
1864
+ }
1865
+ "
1866
+ first_effect = "
1867
+ add_country_modifier = {
1868
+ name = BYZ_dominance
1869
+ duration = 7300
1870
+ }
1871
+ "
1872
+ second_custom_tooltip = BYZ_if_done_via_trade_share
1873
+ second_limit = "
1874
+ 151 = {
1875
+ trade_share = {
1876
+ country = ROOT
1877
+ share = 80
1878
+ }
1879
+ }
1880
+ "
1881
+ second_effect = "
1882
+ add_country_modifier = {
1883
+ name = BYZ_maintaining_relations
1884
+ duration = 5475
1885
+ }
1886
+ "
1887
+ }
1888
+ }
1889
+ }
1890
+
1891
+ BYZ_return_to_gold = {
1892
+ icon = dominant_economy
1893
+ required_missions = { BYZ_economic_independence }
1894
+ position = 11
1895
+ provinces_to_highlight = {
1896
+ OR = {
1897
+ AND = {
1898
+ province_id = 1766
1899
+ OR = {
1900
+ NOT = { owned_by = ROOT }
1901
+ NOT = { base_production = 8 }
1902
+ NOT = { development = 20 }
1903
+ }
1904
+ }
1905
+ AND = {
1906
+ OR = {
1907
+ province_id = 148
1908
+ province_id = 330
1909
+ }
1910
+ OR = {
1911
+ NOT = { owned_by = ROOT }
1912
+ NOT = { has_production_building_trigger = yes }
1913
+ }
1914
+ }
1915
+ }
1916
+ }
1917
+ trigger = {
1918
+ 1766 = {
1919
+ owned_by = ROOT
1920
+ OR = {
1921
+ base_production = 8
1922
+ development = 20
1923
+ }
1924
+ }
1925
+ 148 = {
1926
+ owned_by = ROOT
1927
+ has_production_building_trigger = yes
1928
+ }
1929
+ 330 = {
1930
+ owned_by = ROOT
1931
+ has_production_building_trigger = yes
1932
+ }
1933
+
1934
+ gold_income = 10
1935
+ share_of_starting_income = 5
1936
+ }
1937
+ effect = {
1938
+ define_advisor = {
1939
+ type = master_of_mint
1940
+ skill = 2
1941
+ culture = ROOT
1942
+ religion = ROOT
1943
+ cost_multiplier = 0.5
1944
+ }
1945
+
1946
+ custom_tooltip = " "
1947
+
1948
+ add_country_modifier = {
1949
+ name = BYZ_coin_of_pure_gold
1950
+ duration = 10950
1951
+ }
1952
+
1953
+ add_years_of_trade_income = {
1954
+ years = 2
1955
+ custom_tooltip = BYZ_add_2_years_of_trade_income
1956
+ }
1957
+ }
1958
+ }
1959
+
1960
+ BYZ_support_weavers = {
1961
+ icon = purely_for_commerce
1962
+ required_missions = { BYZ_book_of_the_eparch }
1963
+ position = 12
1964
+ provinces_to_highlight = {
1965
+ OR = {
1966
+ province_id = 4701
1967
+ province_id = 1773
1968
+ province_id = 317
1969
+ }
1970
+ OR = {
1971
+ NOT = { owned_by = ROOT }
1972
+ NOT = { has_production_building_trigger = yes }
1973
+ NOT = { development = 20 }
1974
+ }
1975
+ }
1976
+ trigger = {
1977
+ 4701 = {
1978
+ owned_by = ROOT
1979
+ has_production_building_trigger = yes
1980
+ development = 20
1981
+ }
1982
+ 1773 = {
1983
+ owned_by = ROOT
1984
+ has_production_building_trigger = yes
1985
+ development = 20
1986
+ }
1987
+ 317 = {
1988
+ owned_by = ROOT
1989
+ has_production_building_trigger = yes
1990
+ development = 20
1991
+ }
1992
+ }
1993
+ effect = {
1994
+ 317 = {
1995
+ add_or_upgrade_production_building = yes
1996
+ }
1997
+
1998
+ 1773 = {
1999
+ add_or_upgrade_production_building = yes
2000
+ set_province_flag = BYZ_may_convert_to_silk
2001
+ province_event = { id = MEE_Byzantine_Events.23 }
2002
+ }
2003
+
2004
+ 4701 = {
2005
+ add_or_upgrade_production_building = yes
2006
+ set_province_flag = BYZ_may_convert_to_silk
2007
+ province_event = { id = MEE_Byzantine_Events.23 days = 180 } #the events cannot be fired at the same time
2008
+ }
2009
+
2010
+ custom_tooltip = " "
2011
+
2012
+ country_event_with_effect_insight = {
2013
+ id = MEE_Byzantine_Events.26
2014
+ effect = "
2015
+ change_price = {
2016
+ trade_goods = silk
2017
+ key = BYZ_growing_demand
2018
+ value = 0.2
2019
+ duration = -1
2020
+ }
2021
+ "
2022
+ }
2023
+ }
2024
+ }
2025
+ }
2026
+
2027
+ MEE_BYZ_economy_2 = {
2028
+ slot = 2
2029
+ generic = no
2030
+ ai = yes
2031
+ potential_on_load = {
2032
+ has_dlc = "King of Kings"
2033
+ }
2034
+ potential = {
2035
+ OR = {
2036
+ tag = BYZ
2037
+ AND = {
2038
+ was_tag = BYZ
2039
+ tag = ROM
2040
+ }
2041
+ AND = {
2042
+ tag = LAE
2043
+ has_country_flag = has_byz_missions
2044
+ }
2045
+ }
2046
+ NOT = { map_setup = map_setup_random }
2047
+ has_dlc = "King of Kings"
2048
+ }
2049
+ has_country_shield = yes
2050
+
2051
+ BYZ_tarnished_state = {
2052
+ icon = develop_provence
2053
+ required_missions = { }
2054
+ position = 9
2055
+ provinces_to_highlight = {
2056
+ }
2057
+ trigger = {
2058
+ OR = {
2059
+ custom_trigger_tooltip = {
2060
+ tooltip = BYZ_developed_provinces_at_least_20_times
2061
+ check_variable = {
2062
+ which = num_of_times_developed
2063
+ value = 20
2064
+ }
2065
+ }
2066
+ has_idea = repopulation_of_countryside
2067
+ }
2068
+ }
2069
+ effect = {
2070
+ add_country_modifier = {
2071
+ name = BYZ_reversing_the_decline
2072
+ duration = 7300
2073
+ }
2074
+
2075
+ custom_tooltip = " "
2076
+
2077
+ custom_tooltip = BYZ_revoking_disorganization_of_the_military
2078
+ }
2079
+ }
2080
+
2081
+ BYZ_book_of_the_eparch = {
2082
+ icon = expand_the_confederacy
2083
+ required_missions = { BYZ_tarnished_state }
2084
+ position = 11
2085
+ provinces_to_highlight = {
2086
+ owned_by = ROOT
2087
+ NOT = { has_production_building_trigger = yes }
2088
+ NOT = { trade_goods = gold }
2089
+ }
2090
+ trigger = {
2091
+ num_of_owned_provinces_with = {
2092
+ has_production_building_trigger = yes
2093
+ value = 8
2094
+ }
2095
+ if = {
2096
+ limit = {
2097
+ production_income_percentage = 0.01 #to prevent crashes
2098
+ }
2099
+ custom_trigger_tooltip = {
2100
+ tooltip = BYZ_at_least_10_production_income
2101
+ variable_arithmetic_trigger = {
2102
+ export_to_variable = {
2103
+ which = current_production_income
2104
+ value = monthly_income
2105
+ }
2106
+ export_to_variable = {
2107
+ which = production_income_share
2108
+ value = trigger_value:production_income_percentage
2109
+ }
2110
+ multiply_variable = { which = current_production_income which = production_income_share }
2111
+ check_variable = { which = current_production_income value = 10 }
2112
+ }
2113
+ }
2114
+ }
2115
+ if = {
2116
+ limit = {
2117
+ has_estate = estate_burghers
2118
+ }
2119
+ num_of_estate_agendas_completed = {
2120
+ estate = estate_burghers
2121
+ value = 2
2122
+ }
2123
+ }
2124
+ }
2125
+ effect = {
2126
+ add_country_modifier = {
2127
+ name = BYZ_supporting_the_guilds
2128
+ duration = 9125
2129
+ }
2130
+
2131
+ add_mercantilism = 3
2132
+
2133
+ custom_tooltip = " "
2134
+
2135
+ if = {
2136
+ limit = {
2137
+ has_estate = estate_burghers
2138
+ }
2139
+ complex_dynamic_effect = {
2140
+ first_custom_tooltip = "BYZ_if_we_have_60_estate_loyalty"
2141
+ first_limit = "
2142
+ estate_loyalty = {
2143
+ estate = estate_burghers
2144
+ loyalty = 60
2145
+ }
2146
+ "
2147
+ first_effect = "
2148
+ add_mercantilism = 2
2149
+ "
2150
+ }
2151
+ }
2152
+
2153
+ }
2154
+ }
2155
+
2156
+ BYZ_glass_ware = {
2157
+ icon = bohemian_crystal
2158
+ required_missions = { BYZ_book_of_the_eparch }
2159
+ position = 12
2160
+ provinces_to_highlight = {
2161
+ OR = {
2162
+ AND = {
2163
+ province_id = 164
2164
+ OR = {
2165
+ NOT = { owned_by = ROOT }
2166
+ NOT = { has_production_building_trigger = yes }
2167
+ NOT = { has_shipyard_building_trigger = yes }
2168
+ }
2169
+ }
2170
+ AND = {
2171
+ province_id = 151
2172
+ OR = {
2173
+ NOT = { owned_by = ROOT }
2174
+ NOT = { has_production_building_trigger = yes }
2175
+ }
2176
+ }
2177
+ }
2178
+ }
2179
+ trigger = {
2180
+ 164 = {
2181
+ owned_by = ROOT
2182
+ has_production_building_trigger = yes
2183
+ has_shipyard_building_trigger = yes
2184
+ }
2185
+ 151 = {
2186
+ owned_by = ROOT
2187
+ has_production_building_trigger = yes
2188
+ }
2189
+ }
2190
+ effect = {
2191
+ 164 = {
2192
+ set_province_flag = BYZ_may_convert_to_glass
2193
+ province_event = { id = MEE_Byzantine_Events.23 }
2194
+ }
2195
+
2196
+ custom_tooltip = " "
2197
+
2198
+ custom_tooltip = BYZ_export_mosaicists
2199
+ tooltip = {
2200
+ if = {
2201
+ limit = {
2202
+ has_dlc = "Leviathan"
2203
+ }
2204
+ add_country_modifier = {
2205
+ name = BYZ_mosaicists_Leviathan
2206
+ duration = 3650
2207
+ }
2208
+ }
2209
+ else = {
2210
+ add_country_modifier = {
2211
+ name = BYZ_mosaicists
2212
+ duration = 3650
2213
+ }
2214
+ }
2215
+ }
2216
+
2217
+ custom_tooltip = " "
2218
+
2219
+ if = {
2220
+ limit = {
2221
+ has_dlc = "Emperor"
2222
+ }
2223
+ custom_tooltip = BYZ_buff_glass_privilege
2224
+ }
2225
+ else = {
2226
+ custom_tooltip = BYZ_buff_patronage_of_the_arts
2227
+ }
2228
+ }
2229
+ }
2230
+ }
2231
+
2232
+ MEE_BYZ_economy_3 = {
2233
+ slot = 3
2234
+ generic = no
2235
+ ai = yes
2236
+ potential_on_load = {
2237
+ has_dlc = "King of Kings"
2238
+ }
2239
+ potential = {
2240
+ OR = {
2241
+ tag = BYZ
2242
+ AND = {
2243
+ was_tag = BYZ
2244
+ tag = ROM
2245
+ }
2246
+ AND = {
2247
+ tag = LAE
2248
+ has_country_flag = has_byz_missions
2249
+ }
2250
+ }
2251
+ NOT = { map_setup = map_setup_random }
2252
+ has_dlc = "King of Kings"
2253
+ }
2254
+ has_country_shield = yes
2255
+
2256
+ BYZ_city_of_worlds_desire = {
2257
+ icon = take_constantinople
2258
+ required_missions = { BYZ_tarnished_state }
2259
+ position = 10
2260
+ provinces_to_highlight = {
2261
+ OR = {
2262
+ higher_development_than = 151
2263
+ AND = {
2264
+ province_id = 151
2265
+ OR = {
2266
+ NOT = { owned_by = ROOT }
2267
+ NOT = { development = 40 }
2268
+ NOT = { has_tax_building_trigger = yes }
2269
+ NOT = { has_production_building_trigger = yes }
2270
+ NOT = { has_manpower_building_trigger = yes }
2271
+ }
2272
+ }
2273
+ }
2274
+ }
2275
+ trigger = {
2276
+ 151 = {
2277
+ owned_by = ROOT
2278
+ development = 40
2279
+ has_tax_building_trigger = yes
2280
+ has_production_building_trigger = yes
2281
+ has_manpower_building_trigger = yes
2282
+ custom_trigger_tooltip = {
2283
+ tooltip = BYZ_most_developed_city_in_the_world
2284
+ NOT = {
2285
+ any_province = {
2286
+ higher_development_than = PREV
2287
+ }
2288
+ }
2289
+ }
2290
+ }
2291
+ }
2292
+ effect = {
2293
+ 151 = {
2294
+ add_or_upgrade_tax_building = yes
2295
+ add_or_upgrade_production_building = yes
2296
+ add_or_upgrade_manpower_building = yes
2297
+
2298
+ custom_tooltip = " "
2299
+
2300
+ if = {
2301
+ limit = {
2302
+ has_dlc = "Leviathan"
2303
+ }
2304
+ add_province_modifier = {
2305
+ name = BYZ_queen_of_cities
2306
+ duration = -1
2307
+ }
2308
+ }
2309
+ else = {
2310
+ add_province_modifier = {
2311
+ name = BYZ_queen_of_cities_no_dlc
2312
+ duration = -1
2313
+ }
2314
+ }
2315
+ }
2316
+
2317
+ if = {
2318
+ limit = {
2319
+ has_dlc = "Leviathan"
2320
+ }
2321
+ add_country_modifier = {
2322
+ name = BYZ_centralize_all_wealth
2323
+ duration = -1
2324
+ }
2325
+ }
2326
+
2327
+ custom_tooltip = BYZ_unlock_bosphorus_toll_decision
2328
+ set_country_flag = BYZ_unlocked_bosphorus_toll
2329
+ }
2330
+ }
2331
+
2332
+ BYZ_megalopolis = {
2333
+ icon = a_strong_government
2334
+ required_missions = { BYZ_city_of_worlds_desire }
2335
+ position = 11
2336
+ provinces_to_highlight = {
2337
+ province_id = 151
2338
+ OR = {
2339
+ NOT = { owned_by = ROOT }
2340
+ NOT = { development = 65 }
2341
+ NOT = { num_of_buildings_in_province = 10 }
2342
+ NOT = {
2343
+ AND = {
2344
+ has_dlc = "Leviathan"
2345
+ NOT = {
2346
+ has_great_project = {
2347
+ type = hagia_sophia
2348
+ tier = 3
2349
+ }
2350
+ }
2351
+ }
2352
+ }
2353
+ }
2354
+ }
2355
+ trigger = {
2356
+ 151 = {
2357
+ owned_by = ROOT
2358
+ development = 65
2359
+ num_of_buildings_in_province = 10
2360
+ if = {
2361
+ limit = {
2362
+ has_dlc = "Leviathan"
2363
+ }
2364
+ has_great_project = {
2365
+ type = hagia_sophia
2366
+ tier = 3
2367
+ }
2368
+ }
2369
+ }
2370
+ }
2371
+ effect = {
2372
+ 151 = {
2373
+ add_province_modifier = {
2374
+ name = BYZ_megalopolis_modifier_1
2375
+ duration = -1
2376
+ }
2377
+ hidden_effect = {
2378
+ add_province_triggered_modifier = BYZ_megalopolis_updater #hidden Ptm that updates the modifier
2379
+ }
2380
+ }
2381
+
2382
+ custom_tooltip = BYZ_modifier_will_double
2383
+
2384
+ custom_tooltip = " "
2385
+
2386
+ add_country_modifier = {
2387
+ name = BYZ_monarch_reigns_in_byzantium
2388
+ duration = -1
2389
+ }
2390
+ }
2391
+ }
2392
+
2393
+ BYZ_royal_purple = {
2394
+ icon = mission_pf_cross
2395
+ required_missions = { BYZ_book_of_the_eparch }
2396
+ position = 12
2397
+ provinces_to_highlight = {
2398
+ province_id = 146
2399
+ OR = {
2400
+ NOT = { owned_by = ROOT }
2401
+ NOT = { development = 25 }
2402
+ NOT = { has_production_building_trigger = yes }
2403
+ NOT = { has_trade_building_trigger = yes }
2404
+ }
2405
+ }
2406
+ trigger = {
2407
+ prestige = 50
2408
+ 146 = {
2409
+ owned_by = ROOT
2410
+ development = 25
2411
+ has_production_building_trigger = yes
2412
+ has_trade_building_trigger = yes
2413
+ }
2414
+ }
2415
+ effect = {
2416
+ if = {
2417
+ limit = {
2418
+ has_dlc = "Mandate of Heaven"
2419
+ }
2420
+ add_country_modifier = {
2421
+ name = BYZ_born_in_the_purple
2422
+ duration = 10950
2423
+ }
2424
+ }
2425
+ else = {
2426
+ add_country_modifier = {
2427
+ name = BYZ_born_in_the_purple_no_dlc
2428
+ duration = 10950
2429
+ }
2430
+ }
2431
+
2432
+ 146 = {
2433
+ set_province_flag = BYZ_may_convert_to_dyes
2434
+ province_event = { id = MEE_Byzantine_Events.23 }
2435
+ }
2436
+
2437
+ custom_tooltip = " "
2438
+
2439
+ country_event_with_insight = {
2440
+ id = MEE_Byzantine_Events.22
2441
+ insight_tooltip = BYZ_we_will_be_able_to_change_our_map_color
2442
+ }
2443
+ }
2444
+ }
2445
+ }
2446
+
2447
+ MEE_BYZ_economy_4 = {
2448
+ slot = 4
2449
+ generic = no
2450
+ ai = yes
2451
+ potential_on_load = {
2452
+ has_dlc = "King of Kings"
2453
+ }
2454
+ potential = {
2455
+ OR = {
2456
+ tag = BYZ
2457
+ AND = {
2458
+ was_tag = BYZ
2459
+ tag = ROM
2460
+ }
2461
+ AND = {
2462
+ tag = LAE
2463
+ has_country_flag = has_byz_missions
2464
+ }
2465
+ }
2466
+ NOT = { map_setup = map_setup_random }
2467
+ has_dlc = "King of Kings"
2468
+ }
2469
+ has_country_shield = yes
2470
+
2471
+ BYZ_promote_the_merchants = {
2472
+ icon = mission_conquer_riga
2473
+ required_missions = { }
2474
+ position = 10
2475
+ provinces_to_highlight = {
2476
+ province_id = 151
2477
+ OR = {
2478
+ NOT = { owned_by = ROOT }
2479
+ NOT = { has_trade_building_trigger = yes }
2480
+ NOT = { development = 25 }
2481
+ NOT = {
2482
+ trade_share = {
2483
+ country = ROOT
2484
+ share = 40
2485
+ }
2486
+ }
2487
+ }
2488
+ }
2489
+ trigger = {
2490
+ 151 = {
2491
+ owned_by = ROOT
2492
+ has_trade_building_trigger = yes
2493
+ development = 25
2494
+ trade_share = {
2495
+ country = ROOT
2496
+ share = 40
2497
+ }
2498
+ }
2499
+ }
2500
+ effect = {
2501
+ 151 = {
2502
+ add_or_upgrade_trade_building = yes
2503
+
2504
+ custom_tooltip = " "
2505
+
2506
+ add_trade_modifier = {
2507
+ who = ROOT
2508
+ duration = -1
2509
+ power = 50
2510
+ key = BYZ_megalopolitan_trade
2511
+ }
2512
+
2513
+ custom_tooltip = " "
2514
+
2515
+ add_province_modifier = {
2516
+ name = BYZ_primary_trade_capital
2517
+ duration = -1
2518
+ }
2519
+
2520
+ set_center_level_2_center_of_trade = yes
2521
+ }
2522
+ }
2523
+ }
2524
+
2525
+ BYZ_collect_our_profits = {
2526
+ icon = mission_african_gold
2527
+ required_missions = { BYZ_promote_the_merchants }
2528
+ position = 12
2529
+ provinces_to_highlight = {
2530
+ }
2531
+ trigger = {
2532
+ monthly_income = 50
2533
+ NOT = { inflation = 0.2 }
2534
+ NOT = { num_of_loans = 1 }
2535
+ home_trade_node = {
2536
+ trade_node_value = 25
2537
+ }
2538
+ }
2539
+ effect = {
2540
+ country_event_with_option_insight = {
2541
+ id = MEE_Byzantine_Events.21
2542
+ option_1 = "
2543
+ custom_tooltip = BYZ_buff_private_trade_fleet
2544
+ "
2545
+ option_2 = "
2546
+ custom_tooltip = BYZ_buff_burgher_loans
2547
+ "
2548
+ option_3 = "
2549
+ custom_tooltip = BYZ_buff_free_enterprise
2550
+ "
2551
+ }
2552
+ }
2553
+ }
2554
+
2555
+ BYZ_warehouse_of_the_east = {
2556
+ icon = saxon_manufacturing
2557
+ required_missions = { BYZ_collect_our_profits BYZ_royal_purple BYZ_wealth_from_the_east }
2558
+ position = 12
2559
+ provinces_to_highlight = {
2560
+ owned_by = ROOT
2561
+ NOT = { has_manufactory_trigger = yes }
2562
+ }
2563
+ trigger = {
2564
+ num_of_owned_provinces_with = {
2565
+ has_manufactory_trigger = yes
2566
+ value = 50
2567
+ }
2568
+ home_trade_node = {
2569
+ trade_node_value = 100
2570
+ highest_value_trade_node = yes
2571
+ }
2572
+
2573
+ monthly_income = 400
2574
+ }
2575
+ effect = {
2576
+ add_country_modifier_for_age = {
2577
+ name = BYZ_economic_intimidation
2578
+ age = age_of_reformation
2579
+ else = "
2580
+ add_dip_power = 100
2581
+ add_years_of_income = 1
2582
+ "
2583
+ }
2584
+
2585
+ # custom_tooltip = " "
2586
+
2587
+ custom_tooltip = BYZ_naval_commander_advisor_buff #bound to mission_completed
2588
+
2589
+ custom_tooltip = " "
2590
+
2591
+ complex_dynamic_effect = {
2592
+ first_custom_tooltip = BYZ_if_we_have_taken_laesio_enormis
2593
+ first_limit = " has_reform = laesio_enormis_reform "
2594
+ first_effect = "
2595
+ change_government_reform_progress = 200
2596
+ "
2597
+ }
2598
+ }
2599
+ }
2600
+ }
2601
+
2602
+ MEE_BYZ_economy_5 = {
2603
+ slot = 5
2604
+ generic = no
2605
+ ai = yes
2606
+ potential_on_load = {
2607
+ has_dlc = "King of Kings"
2608
+ }
2609
+ potential = {
2610
+ OR = {
2611
+ tag = BYZ
2612
+ AND = {
2613
+ was_tag = BYZ
2614
+ tag = ROM
2615
+ }
2616
+ AND = {
2617
+ tag = LAE
2618
+ has_country_flag = has_byz_missions
2619
+ }
2620
+ }
2621
+ NOT = { map_setup = map_setup_random }
2622
+ has_dlc = "King of Kings"
2623
+ }
2624
+ has_country_shield = yes
2625
+
2626
+ BYZ_peloponesian_renaissance = {
2627
+ icon = standardize_relazioni
2628
+ required_missions = { }
2629
+ position = 9
2630
+ provinces_to_highlight = {
2631
+ area = morea_area
2632
+ }
2633
+ trigger = {
2634
+ OR = {
2635
+ has_institution = renaissance
2636
+ development_in_provinces = {
2637
+ area = morea_area
2638
+ value = 30
2639
+ }
2640
+ }
2641
+ }
2642
+ effect = {
2643
+ define_advisor = {
2644
+ type = philosopher
2645
+ name = "Gemistos Plethon"
2646
+ skill = 2
2647
+ culture = greek
2648
+ religion = animism
2649
+ cost_multiplier = 0.25
2650
+ }
2651
+
2652
+ custom_tooltip = " "
2653
+
2654
+ complex_dynamic_effect = {
2655
+ first_custom_tooltip = BYZ_if_done_via_renaissance
2656
+ first_limit = "has_institution = renaissance"
2657
+ first_effect = "
2658
+ add_country_modifier = {
2659
+ name = BYZ_origins_of_renaissance
2660
+ duration = 3650
2661
+ }
2662
+ "
2663
+ second_custom_tooltip = BYZ_if_done_via_development
2664
+ second_limit = "
2665
+ development_in_provinces = {
2666
+ area = morea_area
2667
+ value = 30
2668
+ }
2669
+ "
2670
+ second_effect = "
2671
+ morea_area = {
2672
+ limit = {
2673
+ owned_by = ROOT
2674
+ }
2675
+ add_institution_embracement = {
2676
+ which = renaissance
2677
+ value = 90
2678
+ }
2679
+ }
2680
+ "
2681
+ }
2682
+ }
2683
+ }
2684
+
2685
+ BYZ_monemvasian_merchants = {
2686
+ icon = aldine_press
2687
+ required_missions = { BYZ_peloponesian_renaissance }
2688
+ position = 10
2689
+ provinces_to_highlight = {
2690
+ province_id = 145
2691
+ OR = {
2692
+ NOT = { owned_by = ROOT }
2693
+ NOT = { num_of_times_improved = 7 }
2694
+ NOT = { has_trade_building_trigger = yes }
2695
+ AND = {
2696
+ NOT = { has_dock_building_trigger = yes }
2697
+ NOT = { has_shipyard_building_trigger = yes }
2698
+ }
2699
+ }
2700
+ }
2701
+ trigger = {
2702
+ 145 = {
2703
+ owned_by = ROOT
2704
+ num_of_times_improved = 7
2705
+ has_trade_building_trigger = yes
2706
+ OR = {
2707
+ has_dock_building_trigger = yes
2708
+ has_shipyard_building_trigger = yes
2709
+ }
2710
+ }
2711
+ }
2712
+ effect = {
2713
+ 145 = {
2714
+ center_of_trade = 1
2715
+
2716
+ custom_tooltip = " "
2717
+
2718
+ add_province_modifier = {
2719
+ name = BYZ_powerful_merchant_families
2720
+ duration = -1
2721
+ }
2722
+ }
2723
+
2724
+ country_event_with_option_insight = {
2725
+ id = MEE_Byzantine_Events.19
2726
+ option_1 = "
2727
+ define_admiral = {
2728
+ shock = 2
2729
+ fire = 3
2730
+ manuever = 2
2731
+ siege = 0
2732
+ name = \"Loukas Notaras\"
2733
+ }
2734
+ custom_tooltip = \" \"
2735
+ add_navy_tradition = 20
2736
+ "
2737
+ option_2 = "
2738
+ add_years_of_trade_income = {
2739
+ years = 2
2740
+ custom_tooltip = BYZ_add_2_years_of_trade_income
2741
+ }
2742
+ custom_tooltip = \" \"
2743
+ define_advisor = {
2744
+ type = trader
2745
+ name = \"Notaras\"
2746
+ skill = 3
2747
+ culture = ROOT
2748
+ religion = ROOT
2749
+ cost_multiplier = 0.4 #so its slightly better than events
2750
+ }
2751
+ "
2752
+ }
2753
+ }
2754
+ }
2755
+
2756
+ BYZ_thessaly = {
2757
+ icon = renaissance_city
2758
+ required_missions = { BYZ_promote_the_merchants }
2759
+ position = 11
2760
+ provinces_to_highlight = {
2761
+ province_id = 148
2762
+ OR = {
2763
+ NOT = { owned_by = ROOT }
2764
+ NOT = { has_trade_building_trigger = yes }
2765
+ NOT = { development = 25 }
2766
+ NOT = {
2767
+ trade_share = {
2768
+ country = ROOT
2769
+ share = 40
2770
+ }
2771
+ }
2772
+ }
2773
+ }
2774
+ trigger = {
2775
+ 148 = {
2776
+ owned_by = ROOT
2777
+ has_trade_building_trigger = yes
2778
+ development = 25
2779
+ trade_share = {
2780
+ country = ROOT
2781
+ share = 40
2782
+ }
2783
+ }
2784
+ }
2785
+ effect = {
2786
+ 148 = {
2787
+ add_or_upgrade_trade_building = yes
2788
+
2789
+ custom_tooltip = " "
2790
+
2791
+ add_trade_modifier = {
2792
+ who = ROOT
2793
+ duration = -1
2794
+ power = 50
2795
+ key = BYZ_trade_in_thessaloniki
2796
+ }
2797
+
2798
+ custom_tooltip = " "
2799
+
2800
+ add_province_modifier = {
2801
+ name = BYZ_secondary_trade_capital
2802
+ duration = -1
2803
+ }
2804
+ }
2805
+
2806
+ complex_dynamic_effect = {
2807
+ first_custom_tooltip = BYZ_if_constantinople_is_world_port
2808
+ first_limit = "
2809
+ 151 = {
2810
+ owned_by = ROOT
2811
+ province_has_center_of_trade_of_level = 3
2812
+ }
2813
+ "
2814
+ first_effect = "
2815
+ 148 = {
2816
+ add_center_of_trade_level = 3 # max
2817
+ }
2818
+ "
2819
+ }
2820
+ }
2821
+ }
2822
+
2823
+ BYZ_wealth_from_the_east = {
2824
+ icon = mission_pol_breadbasket_europe
2825
+ required_missions = { BYZ_thessaly }
2826
+ position = 12
2827
+ provinces_to_highlight = {
2828
+ OR = {
2829
+ province_id = 1320
2830
+ province_id = 377
2831
+ province_id = 358
2832
+ }
2833
+ NOT = {
2834
+ trade_share = {
2835
+ country = ROOT
2836
+ share = 80
2837
+ }
2838
+ }
2839
+ }
2840
+ trigger = {
2841
+ 1320 = { #constantinople
2842
+ trade_share = {
2843
+ country = ROOT
2844
+ share = 80
2845
+ }
2846
+ }
2847
+ 377 = { #aleppo
2848
+ trade_share = {
2849
+ country = ROOT
2850
+ share = 80
2851
+ }
2852
+ }
2853
+ 358 = { #Alexandria
2854
+ trade_share = {
2855
+ country = ROOT
2856
+ share = 80
2857
+ }
2858
+ }
2859
+
2860
+ num_of_centers_of_trade = 20
2861
+ }
2862
+ effect = {
2863
+ hidden_effect = {
2864
+ unlock_estate_privilege = {
2865
+ estate_privilege = estate_burghers_BYZ_single_market
2866
+ }
2867
+ }
2868
+ custom_tooltip = BYZ_unlock_mercantilism_privilege
2869
+
2870
+ custom_tooltip = " "
2871
+
2872
+ add_mercantilism = 3
2873
+
2874
+ custom_tooltip = " "
2875
+
2876
+
2877
+ custom_tooltip = BYZ_distribute_0_10_0_dev_in_manufactories
2878
+ hidden_effect = {
2879
+ random_owned_province = {
2880
+ limit = {
2881
+ has_manufactory_no_custom_tooltip_trigger = yes
2882
+ }
2883
+ add_base_production = 1
2884
+ type = random
2885
+ amount = 10
2886
+ }
2887
+ }
2888
+ }
2889
+ }
2890
+ }
2891
+
2892
+ MEE_BYZ_religion_1 = {
2893
+ slot = 1
2894
+ generic = no
2895
+ ai = yes
2896
+ potential_on_load = {
2897
+ has_dlc = "King of Kings"
2898
+ }
2899
+ potential = {
2900
+ OR = {
2901
+ tag = BYZ
2902
+ AND = {
2903
+ was_tag = BYZ
2904
+ tag = ROM
2905
+ }
2906
+ AND = {
2907
+ tag = LAE
2908
+ has_country_flag = has_byz_missions
2909
+ }
2910
+ }
2911
+ NOT = { map_setup = map_setup_random }
2912
+ has_dlc = "King of Kings"
2913
+ }
2914
+ has_country_shield = yes
2915
+
2916
+ BYZ_church_in_distress = {
2917
+ icon = guardians_of_saint_sava
2918
+ required_missions = { }
2919
+ position = 13
2920
+ provinces_to_highlight = {
2921
+ }
2922
+ trigger = {
2923
+ BYZ_is_not_latin_empire = yes
2924
+ if = {
2925
+ limit = {
2926
+ has_estate = estate_church
2927
+ }
2928
+ OR = {
2929
+ estate_loyalty = {
2930
+ estate = estate_church
2931
+ loyalty = 70
2932
+ }
2933
+ num_of_estate_privileges = {
2934
+ estate = estate_church
2935
+ value = 4
2936
+ }
2937
+ }
2938
+ }
2939
+ if = {
2940
+ limit = {
2941
+ has_dlc = "Third Rome"
2942
+ }
2943
+ has_orthodox_religious_icon_trigger = yes
2944
+ }
2945
+ else = {
2946
+ patriarch_authority = 20
2947
+ }
2948
+ }
2949
+ effect = {
2950
+ add_country_modifier = {
2951
+ name = BYZ_restoring_faith_in_the_monarchs
2952
+ duration = 7300
2953
+ }
2954
+
2955
+ if = {
2956
+ limit = {
2957
+ has_dlc = "Third Rome"
2958
+ }
2959
+ custom_tooltip = BYZ_double_current_icon
2960
+ hidden_effect = {
2961
+ if = {
2962
+ limit = {
2963
+ current_icon = icon_eleusa
2964
+ }
2965
+ add_country_modifier = {
2966
+ name = BYZ_icon_eleusa
2967
+ duration = 5475
2968
+ }
2969
+ }
2970
+ else_if = {
2971
+ limit = {
2972
+ current_icon = icon_pancreator
2973
+ }
2974
+ add_country_modifier = {
2975
+ name = BYZ_icon_pancreator
2976
+ duration = 5475
2977
+ }
2978
+ }
2979
+ else_if = {
2980
+ limit = {
2981
+ current_icon = icon_nicholas
2982
+ }
2983
+ add_country_modifier = {
2984
+ name = BYZ_icon_nicholas
2985
+ duration = 5475
2986
+ }
2987
+ }
2988
+ else_if = {
2989
+ limit = {
2990
+ current_icon = icon_climacus
2991
+ }
2992
+ add_country_modifier = {
2993
+ name = BYZ_icon_climacus
2994
+ duration = 5475
2995
+ }
2996
+ }
2997
+ else_if = {
2998
+ limit = {
2999
+ current_icon = icon_michael
3000
+ }
3001
+ add_country_modifier = {
3002
+ name = BYZ_icon_michael
3003
+ duration = 5475
3004
+ }
3005
+ }
3006
+ else = { }
3007
+ }
3008
+ }
3009
+ else = {
3010
+ define_advisor = {
3011
+ type = theologian
3012
+ skill = 3
3013
+ culture = ROOT
3014
+ religion = ROOT
3015
+ cost_multiplier = 0.4 #so it's slightly better than event-based advisors.
3016
+ }
3017
+ }
3018
+
3019
+ custom_tooltip = " "
3020
+
3021
+ complex_dynamic_effect = {
3022
+ first_custom_tooltip = BYZ_if_we_have_religious_culture_privilege
3023
+ first_limit = "
3024
+ has_estate_privilege = estate_church_one_faith_one_culture
3025
+ "
3026
+ first_effect = "
3027
+ change_estate_land_share = {
3028
+ estate = estate_church
3029
+ share = -5
3030
+ }
3031
+ "
3032
+ }
3033
+ }
3034
+ }
3035
+
3036
+ BYZ_muscovite_autocephaly = {
3037
+ icon = promote_the_patriarchate
3038
+ required_missions = { BYZ_church_in_distress }
3039
+ position = 15
3040
+ provinces_to_highlight = {
3041
+ if = {
3042
+ limit = {
3043
+ exists = RUS
3044
+ }
3045
+ owned_by = RUS
3046
+ }
3047
+ else_if = {
3048
+ limit = {
3049
+ exists = MOS
3050
+ MOS = {
3051
+ total_development = NOV
3052
+ }
3053
+ }
3054
+ owned_by = MOS
3055
+ }
3056
+ else_if = {
3057
+ limit = {
3058
+ exists = NOV
3059
+ NOV = {
3060
+ total_development = MOS
3061
+ }
3062
+ }
3063
+ owned_by = NOV
3064
+ }
3065
+ else = {
3066
+ always = no
3067
+ }
3068
+ }
3069
+ trigger = {
3070
+ BYZ_is_not_latin_empire = yes
3071
+ if = {
3072
+ limit = {
3073
+ exists = RUS
3074
+ }
3075
+ OR = {
3076
+ alliance_with = RUS
3077
+ has_won_war_against = {
3078
+ who = RUS
3079
+ max_years_since = 20
3080
+ }
3081
+ total_development = RUS
3082
+ }
3083
+ }
3084
+ else_if = {
3085
+ limit = {
3086
+ exists = MOS
3087
+ MOS = {
3088
+ total_development = NOV
3089
+ }
3090
+ }
3091
+ OR = {
3092
+ alliance_with = MOS
3093
+ has_won_war_against = {
3094
+ who = MOS
3095
+ max_years_since = 20
3096
+ }
3097
+ total_development = MOS
3098
+ }
3099
+ }
3100
+ else_if = {
3101
+ limit = {
3102
+ exists = NOV
3103
+ NOV = {
3104
+ total_development = MOS
3105
+ }
3106
+ }
3107
+ OR = {
3108
+ alliance_with = NOV
3109
+ has_won_war_against = {
3110
+ who = NOV
3111
+ max_years_since = 20
3112
+ }
3113
+ total_development = NOV
3114
+ }
3115
+ }
3116
+ else = { #Fallback.
3117
+ is_defender_of_faith = yes
3118
+ total_development = 500
3119
+ }
3120
+ }
3121
+ effect = {
3122
+ country_event_with_effect_insight = {
3123
+ id = MEE_Byzantine_Events.16
3124
+ effect = "
3125
+ custom_tooltip = BYZ_every_orthodox_country_clerical_buff
3126
+ custom_tooltip = \" \"
3127
+ add_patriarch_authority = 0.25
3128
+ custom_tooltip = \" \"
3129
+ custom_tooltip = BYZ_countries_will_like_us_more
3130
+ custom_tooltip = \" \"
3131
+ custom_tooltip = BYZ_diplo_annexing_orthodox_countries
3132
+ "
3133
+ }
3134
+ }
3135
+ }
3136
+
3137
+ BYZ_mend_the_schism = {
3138
+ icon = show_piety
3139
+ required_missions = { BYZ_muscovite_autocephaly BYZ_pentarchy }
3140
+ position = 17
3141
+ provinces_to_highlight = {
3142
+ OR = {
3143
+ province_id = 118
3144
+ and = {
3145
+ is_sea = no
3146
+ not = { religion = root }
3147
+ not = { owner = { religion = root } }
3148
+ continent = europe
3149
+ }
3150
+ }
3151
+ }
3152
+ trigger = {
3153
+ BYZ_is_not_latin_empire = yes
3154
+ 118 = {
3155
+ owned_by = ROOT
3156
+ }
3157
+ #check_variable = {
3158
+ # which = Byz_number_of_catholic_provinces_converted
3159
+ # value = 75
3160
+ #}
3161
+ calc_true_if = {
3162
+ europe = {
3163
+ religion = root
3164
+ owner = { religion = root }
3165
+ type = all
3166
+ }
3167
+ amount = 300
3168
+ }
3169
+
3170
+ total_development = 1000
3171
+ }
3172
+ effect = {
3173
+ country_event_with_effect_insight = {
3174
+ id = MEE_Byzantine_Events.48
3175
+ effect = "
3176
+ if = { limit = { religion = orthodox }
3177
+ add_patriarch_authority = 0.2
3178
+ custom_tooltip = \" \"
3179
+ }
3180
+ add_country_modifier = {
3181
+ name = conversion_of_rome
3182
+ duration = 7300
3183
+ }
3184
+ custom_tooltip = \" \"
3185
+ define_advisor = {
3186
+ type = theologian skill = 3 culture = umbrian religion = ROOT cost_multiplier = 0.25
3187
+ }
3188
+ if = { limit = { religion = orthodox }
3189
+ custom_tooltip = \" \"
3190
+ custom_tooltip = BYZ_every_catholic
3191
+ }
3192
+ "
3193
+ #Yes, I had trouble fitting it in, sorry!
3194
+ }
3195
+ }
3196
+ }
3197
+ }
3198
+
3199
+ MEE_BYZ_religion_2 = {
3200
+ slot = 2
3201
+ generic = no
3202
+ ai = yes
3203
+ potential_on_load = {
3204
+ has_dlc = "King of Kings"
3205
+ }
3206
+ potential = {
3207
+ OR = {
3208
+ tag = BYZ
3209
+ AND = {
3210
+ was_tag = BYZ
3211
+ tag = ROM
3212
+ }
3213
+ AND = {
3214
+ tag = LAE
3215
+ has_country_flag = has_byz_missions
3216
+ }
3217
+ }
3218
+ NOT = { map_setup = map_setup_random }
3219
+ has_dlc = "King of Kings"
3220
+ }
3221
+ has_country_shield = yes
3222
+
3223
+ BYZ_church_authority = {
3224
+ icon = protectors_of_christendom
3225
+ required_missions = { BYZ_church_in_distress }
3226
+ position = 14
3227
+ provinces_to_highlight = {
3228
+ is_capital_of = ROOT
3229
+ NOT = { has_tax_building_trigger = yes }
3230
+ }
3231
+ trigger = {
3232
+ BYZ_is_not_latin_empire = yes
3233
+ NOT = { has_estate_privilege = estate_church_union_of_the_churches }
3234
+ patriarch_authority = 0.5
3235
+ capital_scope = {
3236
+ has_tax_building_trigger = yes
3237
+ }
3238
+ }
3239
+ effect = {
3240
+ custom_tooltip = BYZ_enable_privilege_support_of_dynasty
3241
+ set_country_flag = BYZ_privilege_for_support_of_dynasty
3242
+
3243
+ custom_tooltip = " "
3244
+
3245
+ capital_scope = {
3246
+ add_or_upgrade_tax_building = yes
3247
+ }
3248
+
3249
+ if = {
3250
+ limit = {
3251
+ has_estate = estate_church
3252
+ }
3253
+ custom_tooltip = " "
3254
+ add_estate_loyalty = {
3255
+ estate = estate_church
3256
+ loyalty = 15
3257
+ }
3258
+ }
3259
+
3260
+ if = {
3261
+ limit = { has_reform = byzantine_autocracy_reform }
3262
+ custom_tooltip = " "
3263
+ add_government_reform = reformed_byzantine_monarchy_reform
3264
+ }
3265
+ }
3266
+ }
3267
+
3268
+ BYZ_new_synods = {
3269
+ icon = law_of_the_pious
3270
+ required_missions = { BYZ_church_authority }
3271
+ position = 15
3272
+ provinces_to_highlight = {
3273
+ owned_by = ROOT
3274
+ NOT = { has_tax_building_trigger = yes }
3275
+ }
3276
+ trigger = {
3277
+ BYZ_is_not_latin_empire = yes
3278
+ num_of_owned_provinces_with = {
3279
+ has_tax_building_trigger = yes
3280
+ value = 8
3281
+ }
3282
+ OR = {
3283
+ inquisitor = 2
3284
+ theologian = 2
3285
+ has_adm_advisor_3 = yes
3286
+ }
3287
+ patriarch_authority = 0.8
3288
+ if = {
3289
+ limit = {
3290
+ has_estate = estate_church
3291
+ }
3292
+ estate_loyalty = {
3293
+ estate = estate_church
3294
+ loyalty = 80
3295
+ }
3296
+ }
3297
+ }
3298
+ effect = {
3299
+ custom_tooltip = BYZ_upgrade_the_religious_state_estate_privilege
3300
+ set_country_flag = BYZ_upgrade_the_religious_state_estate_privilege_flag
3301
+
3302
+ custom_tooltip = " "
3303
+
3304
+ add_stability_or_adm_power = yes
3305
+ }
3306
+ }
3307
+
3308
+ BYZ_pentarchy = {
3309
+ icon = mission_autocephalous_archbishopric
3310
+ required_missions = { BYZ_new_synods }
3311
+ position = 15
3312
+ provinces_to_highlight = {
3313
+ OR = {
3314
+ province_id = 151
3315
+ province_id = 2313
3316
+ province_id = 379
3317
+ province_id = 358
3318
+ province_id = 118
3319
+ }
3320
+ OR = {
3321
+ NOT = { development = 30 }
3322
+ NOT = { has_tax_building_trigger = yes }
3323
+ NOT = { owned_by = ROOT }
3324
+ }
3325
+ }
3326
+ trigger = {
3327
+ BYZ_is_not_latin_empire = yes
3328
+ 151 = {
3329
+ development = 30
3330
+ has_tax_building_trigger = yes
3331
+ owned_by = ROOT
3332
+ }
3333
+ 2313 = {
3334
+ development = 30
3335
+ has_tax_building_trigger = yes
3336
+ owned_by = ROOT
3337
+ }
3338
+ 379 = {
3339
+ development = 30
3340
+ has_tax_building_trigger = yes
3341
+ owned_by = ROOT
3342
+ }
3343
+ 358 = {
3344
+ development = 30
3345
+ has_tax_building_trigger = yes
3346
+ owned_by = ROOT
3347
+ }
3348
+ 118 = {
3349
+ development = 30
3350
+ has_tax_building_trigger = yes
3351
+ owned_by = ROOT
3352
+ }
3353
+
3354
+ patriarch_authority = 0.9
3355
+ }
3356
+ effect = {
3357
+ country_event_with_effect_insight = {
3358
+ id = MEE_Byzantine_Events.17
3359
+ effect = "
3360
+ tooltip = {
3361
+ 151 = { add_province_triggered_modifier = BYZ_seat_of_a_patriarch }
3362
+ custom_tooltip = BYZ_other_provinces_will_also_receive_this_modifier
3363
+ }
3364
+
3365
+ custom_tooltip = \" \"
3366
+
3367
+ custom_tooltip = BYZ_enable_the_hold_ecumenical_council_decision
3368
+ "
3369
+ }
3370
+ country_event_with_effect_insight = {
3371
+ id = catholic_flavor.3
3372
+ effect = "
3373
+ add_prestige = 25
3374
+ add_legitimacy = 25
3375
+ set_religion_papacy_active = {
3376
+ religion = catholic
3377
+ active = no
3378
+ }
3379
+ "
3380
+ }
3381
+ }
3382
+ }
3383
+ }
3384
+
3385
+ MEE_BYZ_military_3 = {
3386
+ slot = 3
3387
+ generic = no
3388
+ ai = yes
3389
+ potential_on_load = {
3390
+ has_dlc = "King of Kings"
3391
+ }
3392
+ potential = {
3393
+ OR = {
3394
+ tag = BYZ
3395
+ AND = {
3396
+ was_tag = BYZ
3397
+ tag = ROM
3398
+ }
3399
+ AND = {
3400
+ tag = LAE
3401
+ has_country_flag = has_byz_missions
3402
+ }
3403
+ }
3404
+ NOT = { map_setup = map_setup_random }
3405
+ has_dlc = "King of Kings"
3406
+ }
3407
+ has_country_shield = yes
3408
+
3409
+ BYZ_restore_navy = {
3410
+ icon = expand_the_arsenal
3411
+ required_missions = { BYZ_theme_system }
3412
+ position = 15
3413
+ provinces_to_highlight = {
3414
+ }
3415
+ trigger = {
3416
+ NOT = { has_estate_privilege = estate_burghers_reliance_on_republics }
3417
+ navy_size = 40
3418
+ }
3419
+ effect = {
3420
+ create_admiral = { tradition = 60 }
3421
+
3422
+ custom_tooltip = " "
3423
+
3424
+ add_country_modifier = {
3425
+ name = BYZ_indepenence_from_the_west
3426
+ duration = 7300
3427
+ }
3428
+ }
3429
+ }
3430
+
3431
+ BYZ_greek_fire = {
3432
+ icon = byz_greek_fire
3433
+ required_missions = { BYZ_restore_navy }
3434
+ position = 16
3435
+ provinces_to_highlight = {
3436
+ }
3437
+ trigger = {
3438
+ if = {
3439
+ limit = {
3440
+ has_dlc = "Rule Britannia"
3441
+ }
3442
+ OR = {
3443
+ navy_tradition = 60
3444
+ innovativeness = 40
3445
+ }
3446
+ }
3447
+ else = {
3448
+ navy_tradition = 60
3449
+ }
3450
+ OR = {
3451
+ has_dip_advisor_3 = yes
3452
+ naval_reformer = 1
3453
+ }
3454
+
3455
+ num_of_galley = 50
3456
+ }
3457
+ effect = {
3458
+ add_country_modifier = {
3459
+ name = BYZ_liquid_fire
3460
+ duration = -1
3461
+ }
3462
+
3463
+ complex_dynamic_effect = {
3464
+ first_custom_tooltip = BYZ_if_we_have_the_largest_navy_in_the_world
3465
+ first_limit = "
3466
+ NOT = {
3467
+ any_country = {
3468
+ navy_size = ROOT
3469
+ }
3470
+ }
3471
+ "
3472
+ first_effect = "
3473
+ add_country_modifier = {
3474
+ name = BYZ_dominance_of_the_dromon
3475
+ duration = 7300
3476
+ }
3477
+ "
3478
+ }
3479
+ }
3480
+ }
3481
+ }
3482
+
3483
+ MEE_BYZ_military_4 = {
3484
+ slot = 4
3485
+ generic = no
3486
+ ai = yes
3487
+ potential_on_load = {
3488
+ has_dlc = "King of Kings"
3489
+ }
3490
+ potential = {
3491
+ OR = {
3492
+ tag = BYZ
3493
+ AND = {
3494
+ was_tag = BYZ
3495
+ tag = ROM
3496
+ }
3497
+ AND = {
3498
+ tag = LAE
3499
+ has_country_flag = has_byz_missions
3500
+ }
3501
+ }
3502
+ NOT = { map_setup = map_setup_random }
3503
+ has_dlc = "King of Kings"
3504
+ }
3505
+ has_country_shield = yes
3506
+
3507
+ BYZ_theme_system = {
3508
+ icon = mission_pf_soldier
3509
+ required_missions = { }
3510
+ position = 14
3511
+ provinces_to_highlight = {
3512
+ }
3513
+ trigger = {
3514
+ army_size = 25
3515
+ OR = {
3516
+ manpower = 20
3517
+ manpower_percentage = 0.8
3518
+ }
3519
+ has_mil_advisor_2 = yes
3520
+ grown_by_states = 10
3521
+ }
3522
+ effect = {
3523
+ add_mil_power = 150
3524
+
3525
+ custom_tooltip = " "
3526
+ enable_branching_mission_review = {
3527
+ key = BYZ
3528
+ ai_event_id = MEE_Byzantine_Events.28
3529
+ }
3530
+ custom_tooltip = " "
3531
+
3532
+ country_event_with_insight = {
3533
+ id = MEE_Byzantine_Events.27
3534
+ insight_tooltip = BYZ_unlock_theme_system_reform
3535
+ }
3536
+ }
3537
+ }
3538
+ }
3539
+
3540
+ MEE_BYZ_military_branching_4 = {
3541
+ slot = 4
3542
+ generic = no
3543
+ ai = yes
3544
+ potential_on_load = {
3545
+ has_dlc = "King of Kings"
3546
+ }
3547
+ potential = {
3548
+ OR = {
3549
+ tag = BYZ
3550
+ AND = {
3551
+ was_tag = BYZ
3552
+ tag = ROM
3553
+ }
3554
+ AND = {
3555
+ tag = LAE
3556
+ has_country_flag = has_byz_missions
3557
+ }
3558
+ }
3559
+ NOT = { map_setup = map_setup_random }
3560
+ has_dlc = "King of Kings"
3561
+ NOT = {
3562
+ OR = {
3563
+ has_country_flag = BYZ_decentralized
3564
+ has_country_flag = BYZ_centralized
3565
+ }
3566
+ }
3567
+ }
3568
+ has_country_shield = yes
3569
+
3570
+ BYZ_branching_top_left = {
3571
+ icon = mission_unknown_mission
3572
+ required_missions = { BYZ_theme_system }
3573
+ position = 15
3574
+ provinces_to_highlight = {
3575
+ }
3576
+ trigger = {
3577
+ BYZ_branch_trigger = yes
3578
+ }
3579
+ effect = {
3580
+ BYZ_branch_effect = yes
3581
+ }
3582
+ }
3583
+ }
3584
+
3585
+ MEE_BYZ_military_decentralized_4 = {
3586
+ slot = 4
3587
+ generic = no
3588
+ ai = yes
3589
+ potential_on_load = {
3590
+ has_dlc = "King of Kings"
3591
+ }
3592
+ potential = {
3593
+ OR = {
3594
+ tag = BYZ
3595
+ AND = {
3596
+ was_tag = BYZ
3597
+ tag = ROM
3598
+ }
3599
+ AND = {
3600
+ tag = LAE
3601
+ has_country_flag = has_byz_missions
3602
+ }
3603
+ }
3604
+ NOT = { map_setup = map_setup_random }
3605
+ has_dlc = "King of Kings"
3606
+ has_country_flag = BYZ_decentralized
3607
+ }
3608
+ has_country_shield = yes
3609
+
3610
+ BYZ_foreign_officers = {
3611
+ icon = shift_the_balance
3612
+ required_missions = { BYZ_theme_system }
3613
+ position = 15
3614
+ provinces_to_highlight = {
3615
+ }
3616
+ trigger = {
3617
+ not_in_mission_preview_mode = { key = BYZ }
3618
+ num_of_allies = 2
3619
+ num_of_mercenaries = 30
3620
+ has_mil_advisor_3 = yes
3621
+ }
3622
+ effect = {
3623
+ custom_tooltip = BYZ_get_army_organizer
3624
+ hidden_effect = {
3625
+ country_event = { id = MEE_Byzantine_Events.58 } # Executes the below effect without event target not being set
3626
+
3627
+ # random_ally = {
3628
+ # save_event_target_as = byzantium_temp_target
3629
+ # }
3630
+ # every_ally = {
3631
+ # limit = {
3632
+ # total_development = event_target:byzantium_temp_target
3633
+ # }
3634
+ # save_event_target_as = byzantium_temp_target
3635
+ # }
3636
+ # define_advisor = {
3637
+ # type = army_organiser
3638
+ # cost_multiplier = 0.4
3639
+ # skill = 2
3640
+ # culture = event_target:byzantium_temp_target
3641
+ # religion = event_target:byzantium_temp_target
3642
+ # }
3643
+ }
3644
+
3645
+ custom_tooltip = " "
3646
+
3647
+ add_mil_power = 100
3648
+
3649
+ custom_tooltip = " "
3650
+
3651
+ if = {
3652
+ limit = {
3653
+ has_dlc = "Cradle of Civilization"
3654
+ }
3655
+ add_army_professionalism = 0.05
3656
+ }
3657
+ else = {
3658
+ add_army_tradition_or_mil_power = { amount = 10 }
3659
+ }
3660
+
3661
+ custom_tooltip = " "
3662
+
3663
+ custom_tooltip = BYZ_army_organizer #handled by mission_completed
3664
+ }
3665
+ }
3666
+ }
3667
+
3668
+ MEE_BYZ_military_centralized_4 = {
3669
+ slot = 4
3670
+ generic = no
3671
+ ai = yes
3672
+ potential_on_load = {
3673
+ has_dlc = "King of Kings"
3674
+ }
3675
+ potential = {
3676
+ OR = {
3677
+ tag = BYZ
3678
+ AND = {
3679
+ was_tag = BYZ
3680
+ tag = ROM
3681
+ }
3682
+ AND = {
3683
+ tag = LAE
3684
+ has_country_flag = has_byz_missions
3685
+ }
3686
+ }
3687
+ NOT = { map_setup = map_setup_random }
3688
+ has_dlc = "King of Kings"
3689
+ has_country_flag = BYZ_centralized
3690
+ }
3691
+ has_country_shield = yes
3692
+
3693
+ BYZ_varangian_guard = {
3694
+ icon = mission_the_varangians
3695
+ required_missions = { BYZ_theme_system }
3696
+ position = 15
3697
+ provinces_to_highlight = {
3698
+ }
3699
+ trigger = {
3700
+ not_in_mission_preview_mode = { key = BYZ }
3701
+ army_tradition = 60
3702
+ has_mil_advisor_3 = yes
3703
+ capital_scope = {
3704
+ has_manpower_building_trigger = yes
3705
+ }
3706
+ }
3707
+ effect = {
3708
+ custom_tooltip = BYZ_enable_the_varangian_guard_mercenary_company #handled by mission_completed
3709
+
3710
+ custom_tooltip = " "
3711
+
3712
+ add_country_modifier = {
3713
+ name = BYZ_elite_forces
3714
+ duration = 7300
3715
+ }
3716
+ }
3717
+ }
3718
+ }
3719
+
3720
+ MEE_BYZ_military_branching_5 = {
3721
+ slot = 5
3722
+ generic = no
3723
+ ai = yes
3724
+ potential_on_load = {
3725
+ has_dlc = "King of Kings"
3726
+ }
3727
+ potential = {
3728
+ OR = {
3729
+ tag = BYZ
3730
+ AND = {
3731
+ was_tag = BYZ
3732
+ tag = ROM
3733
+ }
3734
+ AND = {
3735
+ tag = LAE
3736
+ has_country_flag = has_byz_missions
3737
+ }
3738
+ }
3739
+ NOT = { map_setup = map_setup_random }
3740
+ has_dlc = "King of Kings"
3741
+ NOT = {
3742
+ OR = {
3743
+ has_country_flag = BYZ_decentralized
3744
+ has_country_flag = BYZ_centralized
3745
+ }
3746
+ }
3747
+ }
3748
+ has_country_shield = yes
3749
+
3750
+ BYZ_branching_top_right = {
3751
+ icon = mission_unknown_mission
3752
+ required_missions = { BYZ_theme_system }
3753
+ position = 15
3754
+ provinces_to_highlight = {
3755
+ }
3756
+ trigger = {
3757
+ BYZ_branch_trigger = yes
3758
+ }
3759
+ effect = {
3760
+ BYZ_branch_effect = yes
3761
+ }
3762
+ }
3763
+
3764
+ BYZ_branching_bottom = {
3765
+ icon = mission_unknown_mission
3766
+ required_missions = { BYZ_branching_top_left BYZ_branching_top_right }
3767
+ position = 16
3768
+ provinces_to_highlight = {
3769
+ }
3770
+ trigger = {
3771
+ BYZ_branch_trigger = yes
3772
+ }
3773
+ effect = {
3774
+ BYZ_branch_effect = yes
3775
+ }
3776
+ }
3777
+ }
3778
+
3779
+ MEE_BYZ_military_decentralized_5 = {
3780
+ slot = 5
3781
+ generic = no
3782
+ ai = yes
3783
+ potential_on_load = {
3784
+ has_dlc = "King of Kings"
3785
+ }
3786
+ potential = {
3787
+ OR = {
3788
+ tag = BYZ
3789
+ AND = {
3790
+ was_tag = BYZ
3791
+ tag = ROM
3792
+ }
3793
+ AND = {
3794
+ tag = LAE
3795
+ has_country_flag = has_byz_missions
3796
+ }
3797
+ }
3798
+ NOT = { map_setup = map_setup_random }
3799
+ has_dlc = "King of Kings"
3800
+ has_country_flag = BYZ_decentralized
3801
+ }
3802
+ has_country_shield = yes
3803
+
3804
+ BYZ_decentralized_pronoia = {
3805
+ icon = geneva_conventions
3806
+ required_missions = { BYZ_theme_system }
3807
+ position = 15
3808
+ provinces_to_highlight = {
3809
+ owner = {
3810
+ is_subject_of = ROOT
3811
+ OR = {
3812
+ is_subject_of_type = hereditary_pronoia_subject_type
3813
+ is_subject_of_type = pronoia_subject_type
3814
+ }
3815
+ liberty_desire = 5
3816
+ }
3817
+ }
3818
+ trigger = {
3819
+ not_in_mission_preview_mode = { key = BYZ }
3820
+ calc_true_if = {
3821
+ all_subject_country = {
3822
+ OR = {
3823
+ is_subject_of_type = hereditary_pronoia_subject_type
3824
+ is_subject_of_type = pronoia_subject_type
3825
+ }
3826
+ NOT = { liberty_desire = 5 }
3827
+ }
3828
+ amount = 2
3829
+ }
3830
+ OR = {
3831
+ num_of_generals = 6
3832
+ crown_land_share = 50
3833
+ }
3834
+ }
3835
+ effect = {
3836
+ add_country_modifier = {
3837
+ name = BYZ_reliance_on_the_pronoiar
3838
+ duration = -1
3839
+ }
3840
+
3841
+ country_event_with_option_insight = {
3842
+ id = MEE_Byzantine_Events.29
3843
+
3844
+ option_1 = "
3845
+ custom_tooltip = BYZ_upgrade_the_reliance_on_the_pronoiar
3846
+ "
3847
+ option_2 = "
3848
+ custom_tooltip = BYZ_pronoia_subject_no_longer_reduces_forcelimit
3849
+ "
3850
+ option_3 = "
3851
+ custom_tooltip = BYZ_pronoia_extra_forcelimit
3852
+ "
3853
+ }
3854
+ }
3855
+ }
3856
+
3857
+ BYZ_strategoi_realms = {
3858
+ icon = moravian_arms
3859
+ required_missions = { BYZ_decentralized_pronoia BYZ_foreign_officers }
3860
+ position = 16
3861
+ provinces_to_highlight = {
3862
+ }
3863
+ trigger = {
3864
+ not_in_mission_preview_mode = { key = BYZ }
3865
+ calc_true_if = {
3866
+ all_subject_country = {
3867
+ OR = {
3868
+ is_subject_of_type = hereditary_pronoia_subject_type
3869
+ is_subject_of_type = pronoia_subject_type
3870
+ }
3871
+ NOT = { liberty_desire = 5 }
3872
+ army_size = 20
3873
+ }
3874
+ amount = 4
3875
+ }
3876
+ num_of_generals = 7
3877
+
3878
+ if = {
3879
+ limit = {
3880
+ has_estate = estate_nobles
3881
+ }
3882
+ estate_loyalty = {
3883
+ estate = estate_nobles
3884
+ loyalty = 60
3885
+ }
3886
+ }
3887
+ num_of_owned_provinces_with = {
3888
+ has_manpower_building_trigger = yes
3889
+ value = 20
3890
+ }
3891
+ }
3892
+ effect = {
3893
+ custom_tooltip = BYZ_pronoia_buff_army_tradition
3894
+
3895
+ custom_tooltip = " "
3896
+
3897
+ add_country_modifier = {
3898
+ name = BYZ_regional_mercenary_forces
3899
+ duration = -1
3900
+ }
3901
+ }
3902
+ }
3903
+ }
3904
+
3905
+ MEE_BYZ_military_centralized_5 = {
3906
+ slot = 5
3907
+ generic = no
3908
+ ai = yes
3909
+ potential_on_load = {
3910
+ has_dlc = "King of Kings"
3911
+ }
3912
+ potential = {
3913
+ OR = {
3914
+ tag = BYZ
3915
+ AND = {
3916
+ was_tag = BYZ
3917
+ tag = ROM
3918
+ }
3919
+ AND = {
3920
+ tag = LAE
3921
+ has_country_flag = has_byz_missions
3922
+ }
3923
+ }
3924
+ NOT = { map_setup = map_setup_random }
3925
+ has_dlc = "King of Kings"
3926
+ has_country_flag = BYZ_centralized
3927
+ }
3928
+ has_country_shield = yes
3929
+
3930
+ BYZ_centralized_pronoia = {
3931
+ icon = reissue_the_mining_code
3932
+ required_missions = { BYZ_theme_system }
3933
+ position = 15
3934
+ provinces_to_highlight = {
3935
+ owner = {
3936
+ is_subject_of = ROOT
3937
+ OR = {
3938
+ is_subject_of_type = hereditary_pronoia_subject_type
3939
+ is_subject_of_type = pronoia_subject_type
3940
+ }
3941
+ liberty_desire = 5
3942
+ }
3943
+ }
3944
+ trigger = {
3945
+ not_in_mission_preview_mode = { key = BYZ }
3946
+ calc_true_if = {
3947
+ all_subject_country = {
3948
+ OR = {
3949
+ is_subject_of_type = hereditary_pronoia_subject_type
3950
+ is_subject_of_type = pronoia_subject_type
3951
+ }
3952
+ NOT = { liberty_desire = 5 }
3953
+ }
3954
+ amount = 2
3955
+ }
3956
+ OR = {
3957
+ num_of_generals = 6
3958
+ crown_land_share = 50
3959
+ }
3960
+ }
3961
+ effect = {
3962
+ change_government_reform_progress = 100
3963
+
3964
+ custom_tooltip = " "
3965
+
3966
+ country_event_with_option_insight = {
3967
+ id = MEE_Byzantine_Events.30
3968
+ option_1 = "
3969
+ custom_tooltip = BYZ_pronoiars_will_be_hereditary_by_default
3970
+ "
3971
+ option_2 = "
3972
+ custom_tooltip = BYZ_inheriting_pronoia_will_now_give_5_crownland
3973
+ "
3974
+ option_3 = "
3975
+ custom_tooltip = BYZ_pronoia_subjects_get_3_yearly_army_tradition
3976
+ "
3977
+ option_4 = "
3978
+ custom_tooltip = BYZ_pronoia_will_get_5_discipline
3979
+ "
3980
+ }
3981
+ }
3982
+ }
3983
+
3984
+ BYZ_reform_the_themata = {
3985
+ icon = fight_bosnian_heresies
3986
+ required_missions = { BYZ_centralized_pronoia BYZ_varangian_guard }
3987
+ position = 16
3988
+ provinces_to_highlight = {
3989
+ owned_by = ROOT
3990
+ NOT = { is_state = yes }
3991
+ }
3992
+ trigger = {
3993
+ not_in_mission_preview_mode = { key = BYZ }
3994
+
3995
+ army_size = 200
3996
+ num_of_states = 35
3997
+ manpower = 100
3998
+ if = {
3999
+ limit = {
4000
+ has_estate = estate_nobles
4001
+ }
4002
+ estate_loyalty = {
4003
+ estate = estate_nobles
4004
+ loyalty = 60
4005
+ }
4006
+ }
4007
+ num_of_owned_provinces_with = {
4008
+ has_manpower_building_trigger = yes
4009
+ value = 20
4010
+ }
4011
+ }
4012
+ effect = {
4013
+ custom_tooltip = BYZ_for_every_province_with_courthouse
4014
+ hidden_effect = {
4015
+ if = {
4016
+ limit = {
4017
+ num_of_owned_provinces_with = {
4018
+ has_courthouse_building_trigger = yes
4019
+ value = 25
4020
+ }
4021
+ }
4022
+ change_government_reform_progress = 100
4023
+ }
4024
+ else = {
4025
+ every_owned_province = {
4026
+ limit = {
4027
+ has_courthouse_building_trigger = yes
4028
+ }
4029
+ ROOT = { change_government_reform_progress = 4 }
4030
+ }
4031
+ }
4032
+ }
4033
+
4034
+ custom_tooltip = " "
4035
+
4036
+ add_country_modifier = {
4037
+ name = BYZ_professional_themata_soldiers
4038
+ duration = -1
4039
+ }
4040
+ }
4041
+ }
4042
+ }
missions/KoK_Georgian_Missions.txt ADDED
@@ -0,0 +1,2652 @@
1
+ geo_first_branch = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ tag = GEO
10
+ NOT = { map_setup = map_setup_random }
11
+ has_dlc = "King of Kings"
12
+ }
13
+ has_country_shield = yes
14
+
15
+ geo_a_house_divided = {
16
+ icon = geo_a_house_divided
17
+ required_missions = { }
18
+ position = 2
19
+
20
+ provinces_to_highlight = {
21
+ OR = {
22
+ owned_by = SME
23
+ province_id = 2204
24
+ province_id = 4303
25
+ AND = {
26
+ owned_by = ROOT
27
+ culture = georgian
28
+ local_autonomy = 50
29
+ }
30
+ }
31
+ }
32
+
33
+ trigger = {
34
+ NOT = {
35
+ exists = SME
36
+ }
37
+ owns = 2204
38
+ owns = 4303
39
+ }
40
+
41
+ effect = {
42
+ custom_tooltip = add_5_crown_land_share
43
+ add_country_modifier = {
44
+ name = "geo_house_reunited"
45
+ duration = 3650
46
+ }
47
+ if = {
48
+ limit = {
49
+ has_country_modifier = annexers_legacy
50
+ }
51
+ custom_tooltip = geo_annexers_legacy_tt_yes
52
+ }
53
+ else = {
54
+ custom_tooltip = geo_annexers_legacy_tt_no
55
+ }
56
+ if = {
57
+ limit = {
58
+ NOT = {
59
+ has_country_modifier = annexers_legacy
60
+ }
61
+ }
62
+ custom_tooltip = geo_no_annexers_legacy_tt_yes
63
+ tooltip = {
64
+ add_dip_power = 50
65
+ }
66
+ }
67
+ else = {
68
+ custom_tooltip = geo_no_annexers_legacy_tt_no
69
+ tooltip = {
70
+ add_dip_power = 50
71
+ }
72
+ }
73
+ hidden_effect = {
74
+ change_estate_land_share = {
75
+ estate = all
76
+ share = -5
77
+ }
78
+ if = {
79
+ limit = {
80
+ NOT = {
81
+ has_country_modifier = annexers_legacy
82
+ }
83
+ }
84
+ add_dip_power = 50
85
+ }
86
+ else_if = {
87
+ limit = {
88
+ has_country_modifier = annexers_legacy
89
+ }
90
+ remove_country_modifier = annexers_legacy
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ geo_fortify_caucasia = {
97
+ icon = alpine_fortifications
98
+ required_missions = { geo_a_house_divided }
99
+ position = 4
100
+
101
+ provinces_to_highlight = {
102
+ AND = {
103
+ has_fort_building_trigger = yes
104
+ NOT = {
105
+ fort_level = 4
106
+ }
107
+ }
108
+ NOT = { num_of_times_improved = 3 }
109
+ owned_by = ROOT
110
+ region = caucasia_region
111
+ }
112
+
113
+ trigger = {
114
+ calc_true_if = {
115
+ all_owned_province = {
116
+ num_of_times_improved = 3
117
+ fort_level = 4
118
+ region = caucasia_region
119
+ }
120
+ amount = 4
121
+ }
122
+ }
123
+
124
+ effect = {
125
+ if = {
126
+ limit = {
127
+ has_estate = estate_nobles
128
+ }
129
+ unlock_estate_privilege = {
130
+ estate_privilege = estate_nobles_highland_fortifications
131
+ }
132
+ }
133
+ else = {
134
+ add_mil_power = 100
135
+ }
136
+ if = {
137
+ limit = {
138
+ has_dlc = "Leviathan"
139
+ }
140
+ 423 = {
141
+ add_province_modifier = {
142
+ name = "geo_narikala_leviathan"
143
+ duration = 10950
144
+ }
145
+ }
146
+ }
147
+ else = {
148
+ 423 = {
149
+ add_province_modifier = {
150
+ name = "geo_narikala_no_leviathan"
151
+ duration = 10950
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
+ geo_encroach_mamluks = {
159
+ icon = mission_break_the_mamluks
160
+ required_missions = { geo_slay_the_white_sheep }
161
+ position = 6
162
+
163
+ provinces_to_highlight = {
164
+ OR = {
165
+ area = al_jazira_area
166
+ area = aleppo_area
167
+ }
168
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
169
+ }
170
+
171
+ trigger = {
172
+ al_jazira_area = {
173
+ type = all
174
+ country_or_non_sovereign_subject_holds = ROOT
175
+ }
176
+ aleppo_area = {
177
+ type = all
178
+ country_or_non_sovereign_subject_holds = ROOT
179
+ }
180
+ }
181
+
182
+ effect = {
183
+ add_mil_power = 100
184
+ add_country_modifier = {
185
+ name = "geo_wrath_christendom"
186
+ duration = 7300
187
+ }
188
+ add_permanent_claim_province = { province = 321 }
189
+ syria_area = {
190
+ limit = {
191
+ NOT = { is_core = ROOT }
192
+ NOT = { is_permanent_claim = ROOT }
193
+ }
194
+ add_permanent_claim = ROOT
195
+ }
196
+ palestine_area = {
197
+ limit = {
198
+ NOT = { is_core = ROOT }
199
+ NOT = { is_permanent_claim = ROOT }
200
+ }
201
+ add_permanent_claim = ROOT
202
+ }
203
+ syrian_desert_area = {
204
+ limit = {
205
+ NOT = { is_core = ROOT }
206
+ NOT = { is_permanent_claim = ROOT }
207
+ }
208
+ add_permanent_claim = ROOT
209
+ }
210
+ trans_jordan_area = {
211
+ limit = {
212
+ NOT = { is_core = ROOT }
213
+ NOT = { is_permanent_claim = ROOT }
214
+ }
215
+ add_permanent_claim = ROOT
216
+ }
217
+ if = {
218
+ limit = {
219
+ is_defender_of_faith = yes
220
+ }
221
+ custom_tooltip = geo_syria_christians_tt_yes
222
+ tooltip = {
223
+ add_yearly_manpower = 2
224
+ }
225
+ }
226
+ else = {
227
+ custom_tooltip = geo_syria_christians_tt_no
228
+ tooltip = {
229
+ add_yearly_manpower = 2
230
+ }
231
+ }
232
+ hidden_effect = {
233
+ if = {
234
+ limit = {
235
+ is_defender_of_faith = yes
236
+ }
237
+ add_yearly_manpower = 2
238
+ }
239
+ }
240
+ }
241
+ }
242
+
243
+ geo_conquer_cyprus = {
244
+ icon = kingdom_of_cyprus
245
+ required_missions = { geo_encroach_mamluks }
246
+ position = 7
247
+
248
+ provinces_to_highlight = {
249
+ province_id = 321
250
+ NOT = {
251
+ owned_by = ROOT
252
+ }
253
+ }
254
+
255
+ trigger = {
256
+ owns = 321
257
+ }
258
+
259
+ effect = {
260
+ add_sailors = 1000
261
+ add_country_modifier = {
262
+ name = "geo_east_mediterranean"
263
+ duration = 7300
264
+ }
265
+ add_permanent_claim_province = { province = 320 }
266
+ add_permanent_claim_province = { province = 163 }
267
+ }
268
+ }
269
+
270
+ geo_eastern_patriarchates = {
271
+ icon = mission_conquer_alexandria
272
+ required_missions = { geo_claim_the_holy_city }
273
+ position = 8
274
+ provinces_to_highlight = {
275
+ OR = {
276
+ province_id = 358
277
+ province_id = 379
278
+ province_id = 2313
279
+ }
280
+ }
281
+ trigger = {
282
+ owns = 358
283
+ 358 = {
284
+ religion = ROOT
285
+ }
286
+ 358 = {
287
+ has_tax_building_trigger = yes
288
+ }
289
+ if = {
290
+ limit = {
291
+ has_dlc = "Third Rome"
292
+ religion = orthodox
293
+ }
294
+ 358 = {
295
+ has_state_patriach = yes
296
+ }
297
+ }
298
+ owns = 379
299
+ 379 = {
300
+ religion = ROOT
301
+ }
302
+ 379 = {
303
+ has_tax_building_trigger = yes
304
+ }
305
+ if = {
306
+ limit = {
307
+ has_dlc = "Third Rome"
308
+ religion = orthodox
309
+ }
310
+ 379 = {
311
+ has_state_patriach = yes
312
+ }
313
+ }
314
+ owns = 2313
315
+ 2313 = {
316
+ religion = ROOT
317
+ }
318
+ 2313 = {
319
+ has_tax_building_trigger = yes
320
+ }
321
+ if = {
322
+ limit = {
323
+ has_dlc = "Third Rome"
324
+ religion = orthodox
325
+ }
326
+ 2313 = {
327
+ has_state_patriach = yes
328
+ }
329
+ }
330
+ }
331
+ effect = {
332
+ if = {
333
+ limit = {
334
+ 358 = {
335
+ has_building = cathedral
336
+ }
337
+ }
338
+ 358 = {
339
+ add_base_tax = 2
340
+ }
341
+ }
342
+ else_if = {
343
+ limit = {
344
+ 358 = {
345
+ has_building = temple
346
+ NOT = {
347
+ has_building = cathedral
348
+ }
349
+ }
350
+ }
351
+ 358 = {
352
+ hidden_effect = {
353
+ remove_building = temple
354
+ }
355
+ add_building = cathedral
356
+ }
357
+ }
358
+ else = {
359
+ 358 = {
360
+ add_building = temple
361
+ }
362
+ }
363
+ if = {
364
+ limit = {
365
+ 379 = {
366
+ has_building = cathedral
367
+ }
368
+ }
369
+ 379 = {
370
+ add_base_tax = 2
371
+ }
372
+ }
373
+ else_if = {
374
+ limit = {
375
+ 379 = {
376
+ has_building = temple
377
+ NOT = {
378
+ has_building = cathedral
379
+ }
380
+ }
381
+ }
382
+ 379 = {
383
+ hidden_effect = {
384
+ remove_building = temple
385
+ }
386
+ add_building = cathedral
387
+ }
388
+ }
389
+ else = {
390
+ 379 = {
391
+ add_building = temple
392
+ }
393
+ }
394
+ if = {
395
+ limit = {
396
+ 2313 = {
397
+ has_building = cathedral
398
+ }
399
+ }
400
+ 2313 = {
401
+ add_base_tax = 2
402
+ }
403
+ }
404
+ else_if = {
405
+ limit = {
406
+ 2313 = {
407
+ has_building = temple
408
+ NOT = {
409
+ has_building = cathedral
410
+ }
411
+ }
412
+ }
413
+ 2313 = {
414
+ hidden_effect = {
415
+ remove_building = temple
416
+ }
417
+ add_building = cathedral
418
+ }
419
+ }
420
+ else = {
421
+ 2313 = {
422
+ add_building = temple
423
+ }
424
+ }
425
+ add_country_modifier = {
426
+ name = "geo_light_of_the_east"
427
+ duration = -1
428
+ }
429
+ custom_tooltip = geo_developing_orthodox_tt
430
+ set_country_flag = geo_orthodox_dev
431
+ egypt_region = {
432
+ limit = {
433
+ NOT = { is_core = ROOT }
434
+ NOT = { is_permanent_claim = ROOT }
435
+ }
436
+ add_permanent_claim = ROOT
437
+ }
438
+ }
439
+ }
440
+
441
+ }
442
+
443
+ geo_second_branch = {
444
+ slot = 2
445
+ generic = no
446
+ ai = yes
447
+ potential_on_load = {
448
+ has_dlc = "King of Kings"
449
+ }
450
+ potential = {
451
+ tag = GEO
452
+ NOT = { map_setup = map_setup_random }
453
+ has_dlc = "King of Kings"
454
+ }
455
+ has_country_shield = yes
456
+
457
+ geo_vakhtangs_succession = {
458
+ icon = mission_restore_faith_in_the_throne
459
+ required_missions = { }
460
+ position = 1
461
+
462
+ trigger = {
463
+ if = {
464
+ limit = {
465
+ has_dlc = "Leviathan"
466
+ }
467
+ OR = {
468
+ legitimacy = 90
469
+ AND = {
470
+ has_heir = yes
471
+ heir_claim = 60
472
+ }
473
+ }
474
+ }
475
+ else = {
476
+ OR = {
477
+ legitimacy = 90
478
+ has_heir = yes
479
+ }
480
+ }
481
+ }
482
+
483
+ effect = {
484
+ add_heir_claim = 20
485
+ add_country_modifier = {
486
+ name = "geo_succession_secured"
487
+ duration = 3650
488
+ }
489
+ }
490
+ }
491
+
492
+ geo_preventing_collapse = {
493
+ icon = geo_preventing_collapse
494
+ required_missions = { geo_vakhtangs_succession geo_a_house_divided }
495
+ position = 3
496
+
497
+ trigger = {
498
+ OR = {
499
+ AND = {
500
+ custom_trigger_tooltip = {
501
+ tooltip = geo_avoided_disaster_tt
502
+ NOT = {
503
+ has_country_flag = geo_crisis_fired
504
+ }
505
+ }
506
+ stability = 1
507
+ has_any_disaster = no
508
+ NOT = {
509
+ num_of_rebel_armies = 1
510
+ }
511
+ if = {
512
+ limit = {
513
+ has_estate = estate_burghers
514
+ }
515
+ estate_loyalty = {
516
+ estate = estate_burghers
517
+ loyalty = 30
518
+ }
519
+ }
520
+ if = {
521
+ limit = {
522
+ has_estate = estate_nobles
523
+ }
524
+ estate_loyalty = {
525
+ estate = estate_nobles
526
+ loyalty = 30
527
+ }
528
+ }
529
+ if = {
530
+ limit = {
531
+ has_estate = estate_church
532
+ }
533
+ estate_loyalty = {
534
+ estate = estate_church
535
+ loyalty = 30
536
+ }
537
+ }
538
+ }
539
+ custom_trigger_tooltip = {
540
+ tooltip = geo_completed_disaster_tt
541
+ has_country_flag = geo_crisis_completed
542
+ }
543
+ }
544
+ }
545
+
546
+ effect = {
547
+ if = {
548
+ limit = {
549
+ has_country_modifier = geo_powerful_nobles
550
+ }
551
+ remove_country_modifier = geo_powerful_nobles
552
+ }
553
+ if = {
554
+ limit = {
555
+ custom_trigger_tooltip = {
556
+ tooltip = geo_avoided_disaster_tt
557
+ NOT = {
558
+ has_country_flag = geo_crisis_fired
559
+ }
560
+ }
561
+ stability = 1
562
+ has_any_disaster = no
563
+ NOT = {
564
+ num_of_rebel_armies = 1
565
+ }
566
+ if = {
567
+ limit = {
568
+ has_estate = estate_burghers
569
+ }
570
+ estate_loyalty = {
571
+ estate = estate_burghers
572
+ loyalty = 40
573
+ }
574
+ }
575
+ if = {
576
+ limit = {
577
+ has_estate = estate_nobles
578
+ }
579
+ estate_loyalty = {
580
+ estate = estate_nobles
581
+ loyalty = 40
582
+ }
583
+ }
584
+ if = {
585
+ limit = {
586
+ has_estate = estate_church
587
+ }
588
+ estate_loyalty = {
589
+ estate = estate_church
590
+ loyalty = 40
591
+ }
592
+ }
593
+ }
594
+ custom_tooltip = georgia_avoided_disaster_tt_yes
595
+ tooltip = {
596
+ add_country_modifier = {
597
+ name = "geo_realm_reborn"
598
+ duration = 5475
599
+ }
600
+ }
601
+ }
602
+ else = {
603
+ custom_tooltip = georgia_avoided_disaster_tt_no
604
+ tooltip = {
605
+ add_country_modifier = {
606
+ name = "geo_realm_reborn"
607
+ duration = 5475
608
+ }
609
+ }
610
+ }
611
+ if = {
612
+ limit = {
613
+ custom_trigger_tooltip = {
614
+ tooltip = geo_completed_disaster_tt
615
+ has_country_flag = geo_crisis_completed
616
+ }
617
+ }
618
+ custom_tooltip = georgia_completed_disaster_tt_yes
619
+ tooltip = {
620
+ add_country_modifier = {
621
+ name = "geo_restoring_order"
622
+ duration = 5475
623
+ }
624
+ }
625
+ }
626
+ else = {
627
+ custom_tooltip = georgia_completed_disaster_tt_no
628
+ tooltip = {
629
+ add_country_modifier = {
630
+ name = "geo_restoring_order"
631
+ duration = 5475
632
+ }
633
+ }
634
+ }
635
+ hidden_effect = {
636
+ if = {
637
+ limit = {
638
+ custom_trigger_tooltip = {
639
+ tooltip = geo_avoided_disaster_tt
640
+ NOT = {
641
+ has_country_flag = geo_crisis_fired
642
+ }
643
+ }
644
+ stability = 1
645
+ has_any_disaster = no
646
+ NOT = {
647
+ num_of_rebel_armies = 1
648
+ }
649
+ if = {
650
+ limit = {
651
+ has_estate = estate_burghers
652
+ }
653
+ estate_loyalty = {
654
+ estate = estate_burghers
655
+ loyalty = 40
656
+ }
657
+ }
658
+ if = {
659
+ limit = {
660
+ has_estate = estate_nobles
661
+ }
662
+ estate_loyalty = {
663
+ estate = estate_nobles
664
+ loyalty = 40
665
+ }
666
+ }
667
+ if = {
668
+ limit = {
669
+ has_estate = estate_church
670
+ }
671
+ estate_loyalty = {
672
+ estate = estate_church
673
+ loyalty = 40
674
+ }
675
+ }
676
+ }
677
+ add_country_modifier = {
678
+ name = "geo_realm_reborn"
679
+ duration = 5475
680
+ }
681
+ }
682
+ else_if = {
683
+ limit = {
684
+ has_country_flag = geo_crisis_completed
685
+ }
686
+ add_country_modifier = {
687
+ name = "geo_restoring_order"
688
+ duration = 5475
689
+ }
690
+ }
691
+ }
692
+ }
693
+ }
694
+
695
+ geo_deal_with_the_komnenids = {
696
+ icon = mission_pf_soldier
697
+ required_missions = { }
698
+ position = 4
699
+
700
+ provinces_to_highlight = {
701
+ OR = {
702
+ owned_by = TRE
703
+ province_id = 330
704
+ }
705
+ }
706
+
707
+ trigger = {
708
+ OR = {
709
+ AND = {
710
+ alliance_with = TRE
711
+ reverse_has_opinion = {
712
+ who = TRE
713
+ value = 190
714
+ }
715
+ TRE = {
716
+ owes_favors = {
717
+ who = ROOT
718
+ value = 20
719
+ }
720
+ }
721
+ TRE = {
722
+ trust = { who = ROOT value = 80 }
723
+ }
724
+ }
725
+ AND = {
726
+ owns = 330
727
+ NOT = {
728
+ exists = TRE
729
+ }
730
+ }
731
+ }
732
+ }
733
+ effect = {
734
+ north_kurdistan_area = {
735
+ limit = {
736
+ NOT = { is_core = ROOT }
737
+ NOT = { is_permanent_claim = ROOT }
738
+ }
739
+ add_permanent_claim = ROOT
740
+ }
741
+ erzurum_area = {
742
+ limit = {
743
+ NOT = { is_core = ROOT }
744
+ NOT = { is_permanent_claim = ROOT }
745
+ }
746
+ add_permanent_claim = ROOT
747
+ }
748
+ if = {
749
+ limit = {
750
+ alliance_with = TRE
751
+ reverse_has_opinion = {
752
+ who = TRE
753
+ value = 190
754
+ }
755
+ TRE = {
756
+ owes_favors = {
757
+ who = ROOT
758
+ value = 20
759
+ }
760
+ }
761
+ TRE = {
762
+ trust = { who = ROOT value = 80 }
763
+ }
764
+ }
765
+ custom_tooltip = geo_alliance_trebizond_tt_yes
766
+ tooltip = {
767
+ vassalize = TRE
768
+ }
769
+ }
770
+ else = {
771
+ custom_tooltip = geo_alliance_trebizond_tt_no
772
+ tooltip = {
773
+ vassalize = TRE
774
+ }
775
+ }
776
+ if = {
777
+ limit = {
778
+ owns = 330
779
+ NOT = {
780
+ exists = TRE
781
+ }
782
+ }
783
+ custom_tooltip = geo_own_trebizond_tt_yes
784
+ }
785
+ else = {
786
+ custom_tooltip = geo_own_trebizond_tt_no
787
+ }
788
+ hidden_effect = {
789
+ if = {
790
+ limit = {
791
+ alliance_with = TRE
792
+ reverse_has_opinion = {
793
+ who = TRE
794
+ value = 190
795
+ }
796
+ TRE = {
797
+ owes_favors = {
798
+ who = ROOT
799
+ value = 20
800
+ }
801
+ }
802
+ TRE = {
803
+ trust = { who = ROOT value = 80 }
804
+ }
805
+ }
806
+ vassalize = TRE
807
+ }
808
+ else_if = {
809
+ limit = {
810
+ owns = 330
811
+ NOT = {
812
+ exists = TRE
813
+ }
814
+ }
815
+ 330 = {
816
+ add_nationalism = -100
817
+ add_local_autonomy = -100
818
+ }
819
+ }
820
+ }
821
+ }
822
+ }
823
+
824
+ geo_slay_the_white_sheep = {
825
+ icon = qara_qoyunlu_dismantle_ak_qoyunlu
826
+ required_missions = { geo_deal_with_the_komnenids }
827
+ position = 5
828
+
829
+ provinces_to_highlight = {
830
+ OR = {
831
+ area = erzurum_area
832
+ area = north_kurdistan_area
833
+ }
834
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
835
+ }
836
+
837
+ trigger = {
838
+ erzurum_area = {
839
+ type = all
840
+ country_or_non_sovereign_subject_holds = ROOT
841
+ }
842
+ north_kurdistan_area = {
843
+ type = all
844
+ country_or_non_sovereign_subject_holds = ROOT
845
+ }
846
+ }
847
+
848
+ effect = {
849
+ if = {
850
+ limit = {
851
+ NOT = {
852
+ army_tradition = 50
853
+ }
854
+ }
855
+ create_general = { tradition = 50 }
856
+ }
857
+ else_if = {
858
+ limit = {
859
+ NOT = {
860
+ army_tradition = 75
861
+ }
862
+ }
863
+ create_general = { tradition = 75 }
864
+ }
865
+ else = {
866
+ create_general = { tradition = 100 }
867
+ }
868
+ add_country_modifier = {
869
+ name = "geo_counter_turkomans"
870
+ duration = 7300
871
+ }
872
+ al_jazira_area = {
873
+ limit = {
874
+ NOT = { is_core = ROOT }
875
+ NOT = { is_permanent_claim = ROOT }
876
+ }
877
+ add_permanent_claim = ROOT
878
+ }
879
+ shahrizor_area = {
880
+ limit = {
881
+ NOT = { is_core = ROOT }
882
+ NOT = { is_permanent_claim = ROOT }
883
+ }
884
+ add_permanent_claim = ROOT
885
+ }
886
+ iraq_arabi_area = {
887
+ limit = {
888
+ NOT = { is_core = ROOT }
889
+ NOT = { is_permanent_claim = ROOT }
890
+ }
891
+ add_permanent_claim = ROOT
892
+ }
893
+ dulkadir_area = {
894
+ limit = {
895
+ NOT = { is_core = ROOT }
896
+ NOT = { is_permanent_claim = ROOT }
897
+ }
898
+ add_permanent_claim = ROOT
899
+ }
900
+ cukurova_area = {
901
+ limit = {
902
+ NOT = { is_core = ROOT }
903
+ NOT = { is_permanent_claim = ROOT }
904
+ }
905
+ add_permanent_claim = ROOT
906
+ }
907
+ rum_area = {
908
+ limit = {
909
+ NOT = { is_core = ROOT }
910
+ NOT = { is_permanent_claim = ROOT }
911
+ }
912
+ add_permanent_claim = ROOT
913
+ }
914
+ karaman_area = {
915
+ limit = {
916
+ NOT = { is_core = ROOT }
917
+ NOT = { is_permanent_claim = ROOT }
918
+ }
919
+ add_permanent_claim = ROOT
920
+ }
921
+ kastamonu_area = {
922
+ limit = {
923
+ NOT = { is_core = ROOT }
924
+ NOT = { is_permanent_claim = ROOT }
925
+ }
926
+ add_permanent_claim = ROOT
927
+ }
928
+ aleppo_area = {
929
+ limit = {
930
+ NOT = { is_core = ROOT }
931
+ NOT = { is_permanent_claim = ROOT }
932
+ }
933
+ add_permanent_claim = ROOT
934
+ }
935
+ }
936
+ }
937
+
938
+ geo_crade_of_civilization = {
939
+ icon = geo_crade_of_civilization
940
+ required_missions = { geo_slay_the_white_sheep }
941
+ position = 6
942
+
943
+ provinces_to_highlight = {
944
+ area = iraq_arabi_area
945
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
946
+ }
947
+
948
+ trigger = {
949
+ iraq_arabi_area = {
950
+ type = all
951
+ country_or_non_sovereign_subject_holds = ROOT
952
+ }
953
+ }
954
+
955
+ effect = {
956
+ iraq_arabi_area = {
957
+ add_base_production = 1
958
+ }
959
+ iraq_arabi_area = {
960
+ add_province_modifier = {
961
+ name = "geo_fertile_crescent"
962
+ duration = -1
963
+ }
964
+ }
965
+ basra_area = {
966
+ limit = {
967
+ NOT = { is_core = ROOT }
968
+ NOT = { is_permanent_claim = ROOT }
969
+ }
970
+ add_permanent_claim = ROOT
971
+ }
972
+ }
973
+ }
974
+
975
+ geo_claim_the_holy_city = {
976
+ icon = jerusalem
977
+ required_missions = { geo_encroach_mamluks }
978
+ position = 7
979
+
980
+ provinces_to_highlight = {
981
+ area = palestine_area
982
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
983
+ }
984
+
985
+ trigger = {
986
+ palestine_area = {
987
+ type = all
988
+ country_or_non_sovereign_subject_holds = ROOT
989
+ }
990
+ }
991
+
992
+ effect = {
993
+ if = {
994
+ limit = {
995
+ religion = orthodox
996
+ has_dlc = "Third Rome"
997
+ }
998
+ add_patriarch_authority = 0.2
999
+ }
1000
+ else = {
1001
+ add_dip_power = 100
1002
+ }
1003
+ if = {
1004
+ limit = {
1005
+ has_dlc = "Leviathan"
1006
+ }
1007
+ 379 = {
1008
+ add_province_modifier = {
1009
+ name = "geo_restore_holy_city"
1010
+ duration = -1
1011
+ }
1012
+ }
1013
+ }
1014
+ else = {
1015
+ 379 = {
1016
+ add_province_modifier = {
1017
+ name = "geo_restore_holy_city2"
1018
+ duration = -1
1019
+ }
1020
+ }
1021
+ }
1022
+ delta_area = {
1023
+ limit = {
1024
+ NOT = { is_core = ROOT }
1025
+ NOT = { is_permanent_claim = ROOT }
1026
+ }
1027
+ add_permanent_claim = ROOT
1028
+ }
1029
+ bahari_area = {
1030
+ limit = {
1031
+ NOT = { is_core = ROOT }
1032
+ NOT = { is_permanent_claim = ROOT }
1033
+ }
1034
+ add_permanent_claim = ROOT
1035
+ }
1036
+ }
1037
+ }
1038
+
1039
+ geo_beacon_of_christendom = {
1040
+ icon = spread_piety
1041
+ required_missions = { geo_throne_of_the_romans geo_eastern_patriarchates }
1042
+ position = 9
1043
+
1044
+ provinces_to_highlight = {
1045
+ owner = {
1046
+ religion = ROOT
1047
+ army_size = ROOT
1048
+ }
1049
+ }
1050
+
1051
+ trigger = {
1052
+ custom_trigger_tooltip = {
1053
+ tooltip = geo_army_size_true_faith
1054
+ NOT = {
1055
+ any_country = {
1056
+ religion = ROOT
1057
+ army_size = ROOT
1058
+ }
1059
+ }
1060
+ }
1061
+ if = {
1062
+ limit = {
1063
+ has_dlc = "Third Rome"
1064
+ }
1065
+ patriarch_authority = 1
1066
+ }
1067
+ OR = {
1068
+ is_defender_of_faith = yes
1069
+ full_idea_group = religious_ideas
1070
+ }
1071
+ religion_group = christian
1072
+ }
1073
+
1074
+ effect = {
1075
+ custom_tooltip = geo_ten_provinces_manpower_tt
1076
+ if = {
1077
+ limit = {
1078
+ religion_group = christian
1079
+ }
1080
+ add_country_modifier = {
1081
+ name = "geo_beacon1"
1082
+ duration = -1
1083
+ }
1084
+ }
1085
+ else = {
1086
+ add_country_modifier = {
1087
+ name = "geo_beacon2"
1088
+ duration = -1
1089
+ }
1090
+ }
1091
+ if = {
1092
+ limit = {
1093
+ num_of_owned_provinces_with = {
1094
+ religion = ROOT
1095
+ value = 100
1096
+ }
1097
+ }
1098
+ custom_tooltip = geo_100_prov_tt_yes
1099
+ }
1100
+ else = {
1101
+ custom_tooltip = geo_100_prov_tt_no
1102
+ }
1103
+ hidden_effect = {
1104
+ for = {
1105
+ amount = 10
1106
+ effect = "
1107
+ random_owned_province = {
1108
+ limit = {
1109
+ religion = ROOT
1110
+ }
1111
+ add_base_manpower = 1
1112
+ }
1113
+ "
1114
+ }
1115
+ if = {
1116
+ limit = {
1117
+ num_of_owned_provinces_with = {
1118
+ religion = ROOT
1119
+ value = 100
1120
+ }
1121
+ }
1122
+ if = {
1123
+ limit = {
1124
+ has_country_modifier = geo_beacon1
1125
+ }
1126
+ remove_country_modifier = geo_beacon1
1127
+ add_country_modifier = {
1128
+ name = "geo_beacon1_empowered"
1129
+ duration = -1
1130
+ }
1131
+ }
1132
+ else_if = {
1133
+ limit = {
1134
+ has_country_modifier = geo_beacon2
1135
+ }
1136
+ remove_country_modifier = geo_beacon2
1137
+ add_country_modifier = {
1138
+ name = "geo_beacon2_empowered"
1139
+ duration = -1
1140
+ }
1141
+ }
1142
+ }
1143
+ }
1144
+ }
1145
+ }
1146
+ }
1147
+
1148
+ geo_third_branch = {
1149
+ slot = 3
1150
+ generic = no
1151
+ ai = yes
1152
+ potential_on_load = {
1153
+ has_dlc = "King of Kings"
1154
+ }
1155
+ potential = {
1156
+ tag = GEO
1157
+ NOT = { map_setup = map_setup_random }
1158
+ has_dlc = "King of Kings"
1159
+ }
1160
+ has_country_shield = yes
1161
+
1162
+ geo_liberate_armenia = {
1163
+ icon = legacy_of_the_sclavinias
1164
+ required_missions = { geo_recover_strength }
1165
+ position = 2
1166
+
1167
+ provinces_to_highlight = {
1168
+ area = armenia_area
1169
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1170
+ }
1171
+
1172
+ trigger = {
1173
+ armenia_area = {
1174
+ type = all
1175
+ country_or_non_sovereign_subject_holds = ROOT
1176
+ }
1177
+ }
1178
+
1179
+ effect = {
1180
+ add_accepted_culture = armenian
1181
+ add_country_modifier = {
1182
+ name = "geo_armenian_union"
1183
+ duration = -1
1184
+ desc = geo_armenian_union_tt
1185
+ }
1186
+ define_advisor = {
1187
+ type = commandant
1188
+ skill = 2
1189
+ culture = armenian
1190
+ religion = coptic
1191
+ cost_multiplier = 0.25
1192
+ }
1193
+ custom_tooltip = geo_empty
1194
+ tabriz_area = {
1195
+ limit = {
1196
+ NOT = { is_core = ROOT }
1197
+ NOT = { is_permanent_claim = ROOT }
1198
+ }
1199
+ add_permanent_claim = ROOT
1200
+ }
1201
+ }
1202
+ }
1203
+
1204
+ geo_turkoman = {
1205
+ icon = geo_turkoman
1206
+ required_missions = { geo_liberate_armenia }
1207
+ position = 4
1208
+
1209
+ provinces_to_highlight = {
1210
+ area = tabriz_area
1211
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1212
+ }
1213
+
1214
+ trigger = {
1215
+ tabriz_area = {
1216
+ type = all
1217
+ country_or_non_sovereign_subject_holds = ROOT
1218
+ }
1219
+ }
1220
+
1221
+ effect = {
1222
+ change_ruler_stat = {
1223
+ type = mil
1224
+ amount = 1
1225
+ }
1226
+ add_country_modifier = {
1227
+ name = "geo_break_legacy_seljuk"
1228
+ duration = 7300
1229
+ }
1230
+ custom_tooltip = geo_core_qq_tt
1231
+ if = {
1232
+ limit = {
1233
+ NOT = {
1234
+ any_country = {
1235
+ capital_scope = {
1236
+ region = persia_region
1237
+ }
1238
+ total_development = ROOT
1239
+ }
1240
+ }
1241
+ }
1242
+ custom_tooltip = geo_princes_of_persia_tt_yes
1243
+ }
1244
+ else = {
1245
+ custom_tooltip = geo_princes_of_persia_tt_no
1246
+ }
1247
+ hidden_effect = {
1248
+ every_province = {
1249
+ limit = {
1250
+ is_core = QAR
1251
+ }
1252
+ add_permanent_claim = ROOT
1253
+ }
1254
+ if = {
1255
+ limit = {
1256
+ NOT = {
1257
+ any_country = {
1258
+ capital_scope = {
1259
+ region = persia_region
1260
+ }
1261
+ total_development = ROOT
1262
+ }
1263
+ }
1264
+ }
1265
+ every_country = {
1266
+ limit = {
1267
+ capital_scope = {
1268
+ region = persia_region
1269
+ }
1270
+ }
1271
+ reverse_add_casus_belli = {
1272
+ type = cb_vassalize_mission
1273
+ months = 300
1274
+ target = ROOT
1275
+ }
1276
+ }
1277
+ }
1278
+ }
1279
+ }
1280
+ }
1281
+
1282
+ geo_anatolian_incursion = {
1283
+ icon = anatolian_frontier
1284
+ required_missions = { geo_slay_the_white_sheep }
1285
+ position = 6
1286
+
1287
+ provinces_to_highlight = {
1288
+ OR = {
1289
+ area = dulkadir_area
1290
+ area = cukurova_area
1291
+ area = rum_area
1292
+ area = karaman_area
1293
+ area = kastamonu_area
1294
+ }
1295
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1296
+ }
1297
+
1298
+ trigger = {
1299
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1300
+ OR = {
1301
+ area = dulkadir_area
1302
+ area = cukurova_area
1303
+ area = rum_area
1304
+ area = karaman_area
1305
+ area = kastamonu_area
1306
+ }
1307
+ value = 10
1308
+ }
1309
+ }
1310
+
1311
+ effect = {
1312
+ add_war_exhaustion = -3
1313
+ add_country_modifier = {
1314
+ name = "geo_avenging_manzikert"
1315
+ duration = 5475
1316
+ }
1317
+ anatolia_region = {
1318
+ limit = {
1319
+ NOT = { is_core = ROOT }
1320
+ NOT = { is_permanent_claim = ROOT }
1321
+ }
1322
+ add_permanent_claim = ROOT
1323
+ }
1324
+ }
1325
+ }
1326
+
1327
+ geo_break_the_crescent = {
1328
+ icon = geo_break_the_crescent
1329
+ required_missions = { geo_anatolian_incursion }
1330
+ position = 7
1331
+
1332
+ provinces_to_highlight = {
1333
+ OR = {
1334
+ area = kastamonu_area
1335
+ area = hudavendigar_area
1336
+ area = ankara_area
1337
+ area = germiyan_area
1338
+ area = aydin_area
1339
+ }
1340
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1341
+ }
1342
+
1343
+ trigger = {
1344
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1345
+ OR = {
1346
+ area = kastamonu_area
1347
+ area = hudavendigar_area
1348
+ area = ankara_area
1349
+ area = germiyan_area
1350
+ area = aydin_area
1351
+ }
1352
+ value = 12
1353
+ }
1354
+ }
1355
+
1356
+ effect = {
1357
+ add_permanent_power_projection = {
1358
+ type = 25_permanent_power_projection
1359
+ amount = 25
1360
+ }
1361
+ add_country_modifier = {
1362
+ name = geo_turning_the_tide
1363
+ duration = 7300
1364
+ }
1365
+ thrace_area = {
1366
+ limit = {
1367
+ NOT = { is_core = ROOT }
1368
+ NOT = { is_permanent_claim = ROOT }
1369
+ }
1370
+ add_permanent_claim = ROOT
1371
+ }
1372
+ if = {
1373
+ limit = {
1374
+ TUR = {
1375
+ NOT = {
1376
+ total_development = ROOT
1377
+ }
1378
+ }
1379
+ }
1380
+ custom_tooltip = geo_tur_development_tt_yes
1381
+ tooltip = {
1382
+ add_prestige_or_monarch_power = {
1383
+ amount = 25
1384
+ }
1385
+ }
1386
+ }
1387
+ else = {
1388
+ custom_tooltip = geo_tur_development_tt_no
1389
+ tooltip = {
1390
+ add_prestige_or_monarch_power = {
1391
+ amount = 25
1392
+ }
1393
+ }
1394
+ }
1395
+ hidden_effect = {
1396
+ if = {
1397
+ limit = {
1398
+ TUR = {
1399
+ NOT = {
1400
+ total_development = ROOT
1401
+ }
1402
+ }
1403
+ }
1404
+ add_prestige_or_monarch_power = {
1405
+ amount = 25
1406
+ }
1407
+ }
1408
+ }
1409
+ }
1410
+ }
1411
+
1412
+ geo_throne_of_the_romans = {
1413
+ icon = end_the_schism
1414
+ required_missions = { geo_break_the_crescent }
1415
+ position = 8
1416
+
1417
+ provinces_to_highlight = {
1418
+ province_id = 151
1419
+ NOT = {
1420
+ is_core = ROOT
1421
+ }
1422
+ }
1423
+
1424
+ trigger = {
1425
+ owns_core_province = 151
1426
+ }
1427
+
1428
+ effect = {
1429
+ country_event = { id = flavor_geo.2 }
1430
+ custom_tooltip = geo_throne_romans_insight_tt
1431
+ tooltip = {
1432
+ add_country_modifier = {
1433
+ name = "geo_heirs_of_romans"
1434
+ duration = -1
1435
+ }
1436
+ }
1437
+ silistria_area = {
1438
+ limit = {
1439
+ NOT = { is_core = ROOT }
1440
+ NOT = { is_permanent_claim = ROOT }
1441
+ }
1442
+ add_permanent_claim = ROOT
1443
+ }
1444
+ bulgaria_area = {
1445
+ limit = {
1446
+ NOT = { is_core = ROOT }
1447
+ NOT = { is_permanent_claim = ROOT }
1448
+ }
1449
+ add_permanent_claim = ROOT
1450
+ }
1451
+ macedonia_area = {
1452
+ limit = {
1453
+ NOT = { is_core = ROOT }
1454
+ NOT = { is_permanent_claim = ROOT }
1455
+ }
1456
+ add_permanent_claim = ROOT
1457
+ }
1458
+ northern_greece_area = {
1459
+ limit = {
1460
+ NOT = { is_core = ROOT }
1461
+ NOT = { is_permanent_claim = ROOT }
1462
+ }
1463
+ add_permanent_claim = ROOT
1464
+ }
1465
+ morea_area = {
1466
+ limit = {
1467
+ NOT = { is_core = ROOT }
1468
+ NOT = { is_permanent_claim = ROOT }
1469
+ }
1470
+ add_permanent_claim = ROOT
1471
+ }
1472
+ aegean_archipelago_area = {
1473
+ limit = {
1474
+ NOT = { is_core = ROOT }
1475
+ NOT = { is_permanent_claim = ROOT }
1476
+ }
1477
+ add_permanent_claim = ROOT
1478
+ }
1479
+ }
1480
+ }
1481
+
1482
+ }
1483
+
1484
+ geo_fourth_branch = {
1485
+ slot = 4
1486
+ generic = no
1487
+ ai = yes
1488
+ potential_on_load = {
1489
+ has_dlc = "King of Kings"
1490
+ }
1491
+ potential = {
1492
+ tag = GEO
1493
+ NOT = { map_setup = map_setup_random }
1494
+ has_dlc = "King of Kings"
1495
+ }
1496
+ has_country_shield = yes
1497
+
1498
+ geo_recover_strength = {
1499
+ icon = mission_early_russian_army
1500
+ required_missions = { }
1501
+ position = 1
1502
+ provinces_to_highlight = {
1503
+ }
1504
+ trigger = {
1505
+ OR = {
1506
+ num_of_allies = 2
1507
+ manpower_percentage = 0.9
1508
+ army_size_percentage = 0.9
1509
+ }
1510
+ }
1511
+ effect = {
1512
+ add_country_modifier = {
1513
+ name = geo_resurgent_georgia
1514
+ duration = 5475
1515
+ }
1516
+ armenia_area = {
1517
+ limit = {
1518
+ NOT = { is_core = ROOT }
1519
+ NOT = { is_permanent_claim = ROOT }
1520
+ }
1521
+ add_permanent_claim = ROOT
1522
+ }
1523
+ shirvan_area = {
1524
+ limit = {
1525
+ NOT = { is_core = ROOT }
1526
+ NOT = { is_permanent_claim = ROOT }
1527
+ }
1528
+ add_permanent_claim = ROOT
1529
+ }
1530
+ dagestan_area = {
1531
+ limit = {
1532
+ NOT = { is_core = ROOT }
1533
+ NOT = { is_permanent_claim = ROOT }
1534
+ }
1535
+ add_permanent_claim = ROOT
1536
+ }
1537
+ circassia_area = {
1538
+ limit = {
1539
+ NOT = { is_core = ROOT }
1540
+ NOT = { is_permanent_claim = ROOT }
1541
+ }
1542
+ add_permanent_claim = ROOT
1543
+ }
1544
+ }
1545
+ }
1546
+
1547
+ geo_reclaim_shirvanshah = {
1548
+ icon = mission_unite_home_region
1549
+ required_missions = { geo_recover_strength }
1550
+ position = 2
1551
+
1552
+ provinces_to_highlight = {
1553
+ area = shirvan_area
1554
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1555
+ }
1556
+
1557
+ trigger = {
1558
+ shirvan_area = {
1559
+ type = all
1560
+ country_or_non_sovereign_subject_holds = ROOT
1561
+ }
1562
+ }
1563
+
1564
+ effect = {
1565
+ custom_tooltip = geo_shirvan_random_dev_tt
1566
+ hidden_effect = {
1567
+ random_list = {
1568
+ 33 = { shirvan_area = { add_base_tax = 1 } }
1569
+ 33 = { shirvan_area = { add_base_production = 1 } }
1570
+ 33 = { shirvan_area = { add_base_manpower = 1 } }
1571
+ }
1572
+ }
1573
+ shirvan_area = {
1574
+ add_province_modifier = {
1575
+ name = geo_rein_in_azeris
1576
+ duration = 7300
1577
+ }
1578
+ }
1579
+ tabarestan_area = {
1580
+ limit = {
1581
+ NOT = { is_core = ROOT }
1582
+ NOT = { is_permanent_claim = ROOT }
1583
+ }
1584
+ add_permanent_claim = ROOT
1585
+ }
1586
+ azerbaijan_area = {
1587
+ limit = {
1588
+ NOT = { is_core = ROOT }
1589
+ NOT = { is_permanent_claim = ROOT }
1590
+ }
1591
+ add_permanent_claim = ROOT
1592
+ }
1593
+ }
1594
+ }
1595
+
1596
+ geo_seize_crimea = {
1597
+ icon = mission_sca_lit_conquer_crimea
1598
+ required_missions = { geo_cross_the_caucasus }
1599
+ position = 3
1600
+
1601
+ provinces_to_highlight = {
1602
+ area = crimea_area
1603
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1604
+ }
1605
+
1606
+ trigger = {
1607
+ crimea_area = {
1608
+ type = all
1609
+ country_or_non_sovereign_subject_holds = ROOT
1610
+ }
1611
+ }
1612
+
1613
+ effect = {
1614
+ random_owned_province = {
1615
+ limit = {
1616
+ has_port = yes
1617
+ }
1618
+ add_unit_construction = {
1619
+ type = light_ship
1620
+ amount = 5
1621
+ speed = 0.1
1622
+ cost = 0
1623
+ }
1624
+ }
1625
+ add_country_modifier = {
1626
+ name = geo_centers_of_trade
1627
+ duration = 3650
1628
+ }
1629
+ custom_tooltip = geo_centers_of_trade_tt
1630
+ }
1631
+ }
1632
+
1633
+ geo_monopolize_the_black_sea = {
1634
+ icon = mission_control_the_black_sea
1635
+ required_missions = { geo_seize_crimea }
1636
+ position = 4
1637
+
1638
+ provinces_to_highlight = {
1639
+ OR = {
1640
+ AND = {
1641
+ province_id = 284
1642
+ NOT = {
1643
+ 284 = { trade_share = { country = ROOT share = 50 } }
1644
+ }
1645
+ }
1646
+ AND = {
1647
+ owned_by = ROOT
1648
+ province_has_center_of_trade_of_level = 1
1649
+ NOT = { province_has_center_of_trade_of_level = 2 }
1650
+ any_trade_node_member_province = { province_id = 284 }
1651
+ }
1652
+ }
1653
+ }
1654
+
1655
+ trigger = {
1656
+ if = {
1657
+ limit = {
1658
+ has_dlc = "Dharma"
1659
+ }
1660
+ 284 = {
1661
+ calc_true_if = {
1662
+ all_trade_node_member_province = {
1663
+ province_has_center_of_trade_of_level = 2
1664
+ owned_by = ROOT
1665
+ }
1666
+ amount = 4
1667
+ }
1668
+ }
1669
+ }
1670
+ else = {
1671
+ 284 = {
1672
+ calc_true_if = {
1673
+ all_trade_node_member_province = {
1674
+ province_has_center_of_trade_of_level = 1
1675
+ owned_by = ROOT
1676
+ }
1677
+ amount = 4
1678
+ }
1679
+ }
1680
+ }
1681
+ 284 = { #Crimea
1682
+ trade_share = {
1683
+ country = ROOT
1684
+ share = 50
1685
+ }
1686
+ }
1687
+ num_of_light_ship = 10
1688
+ }
1689
+
1690
+ effect = {
1691
+ add_years_of_trade_income = {
1692
+ years = 1
1693
+ custom_tooltip = geo_trade_income
1694
+ }
1695
+ add_country_modifier = {
1696
+ name = geo_trade_hegemony
1697
+ duration = -1
1698
+ }
1699
+ define_advisor = {
1700
+ type = trader
1701
+ skill = 3
1702
+ culture = ROOT
1703
+ religion = ROOT
1704
+ cost_multiplier = 0.5
1705
+ }
1706
+ }
1707
+ }
1708
+
1709
+ geo_rebuild_tbilisi = {
1710
+ icon = despot_stefans_legacy
1711
+ required_missions = { }
1712
+ position = 6
1713
+
1714
+ provinces_to_highlight = {
1715
+ province_id = 423
1716
+ }
1717
+
1718
+ trigger = {
1719
+ 423 = {
1720
+ owned_by = ROOT
1721
+ }
1722
+ OR = {
1723
+ 423 = {
1724
+ num_of_times_improved = 4
1725
+ }
1726
+ 423 = {
1727
+ NOT = {
1728
+ num_free_building_slots = 1
1729
+ }
1730
+ }
1731
+ }
1732
+ 423 = {
1733
+ NOT = {
1734
+ devastation = 1
1735
+ }
1736
+ }
1737
+ }
1738
+
1739
+ effect = {
1740
+ if = {
1741
+ limit = {
1742
+ has_dlc = "Mandate of Heaven"
1743
+ }
1744
+ 423 = {
1745
+ add_prosperity = 100
1746
+ }
1747
+ }
1748
+ else = {
1749
+ 423 = {
1750
+ add_base_production = 2
1751
+ }
1752
+ }
1753
+ 423 = {
1754
+ add_province_modifier = {
1755
+ name = geo_tbilisi
1756
+ duration = 18250
1757
+ }
1758
+ }
1759
+ if = {
1760
+ limit = {
1761
+ NOT = {
1762
+ has_institution = renaissance
1763
+ }
1764
+ }
1765
+ custom_tooltip = geo_renaissance_tt_yes
1766
+ tooltip = {
1767
+ 423 = {
1768
+ add_institution_embracement = {
1769
+ which = renaissance
1770
+ value = 25
1771
+ }
1772
+ }
1773
+ }
1774
+ }
1775
+ else = {
1776
+ custom_tooltip = geo_renaissance_tt_no
1777
+ tooltip = {
1778
+ 423 = {
1779
+ add_institution_embracement = {
1780
+ which = renaissance
1781
+ value = 25
1782
+ }
1783
+ }
1784
+ }
1785
+ }
1786
+ hidden_effect = {
1787
+ if = {
1788
+ limit = {
1789
+ NOT = {
1790
+ has_institution = renaissance
1791
+ }
1792
+ }
1793
+ 423 = {
1794
+ add_institution_embracement = {
1795
+ which = renaissance
1796
+ value = 25
1797
+ }
1798
+ }
1799
+ }
1800
+ }
1801
+ }
1802
+ }
1803
+
1804
+ geo_georgian_wineyards = {
1805
+ icon = mission_wine_monopolies
1806
+ required_missions = { geo_rebuild_tbilisi }
1807
+ position = 7
1808
+
1809
+ provinces_to_highlight = {
1810
+ trade_goods = wine
1811
+ NOT = { has_manufactory_trigger = yes }
1812
+ NOT = { base_production = 4 }
1813
+ owned_by = ROOT
1814
+ }
1815
+
1816
+ trigger = {
1817
+ calc_true_if = {
1818
+ all_owned_province = {
1819
+ trade_goods = wine
1820
+ base_production = 4
1821
+ has_manufactory_trigger = yes
1822
+ }
1823
+ amount = 5
1824
+ }
1825
+ }
1826
+
1827
+ effect = {
1828
+ custom_tooltip = geo_wine_tt
1829
+ tooltip = {
1830
+ add_province_modifier = {
1831
+ name = geo_wineyards
1832
+ duration = -1
1833
+ }
1834
+ }
1835
+ custom_tooltip = geo_wine_manufactory_tt
1836
+ set_country_flag = geo_wine_manufactory_flag
1837
+ hidden_effect = {
1838
+ every_owned_province = {
1839
+ limit = {
1840
+ trade_goods = wine
1841
+ base_production = 4
1842
+ has_manufactory_trigger = yes
1843
+ }
1844
+ add_base_production = 1
1845
+ add_province_modifier = {
1846
+ name = geo_wineyards
1847
+ duration = -1
1848
+ }
1849
+ }
1850
+ }
1851
+ }
1852
+ }
1853
+
1854
+ geo_legacy_of_the_builder = {
1855
+ icon = eastern_catholicization
1856
+ required_missions = { geo_revive_native_literature }
1857
+ position = 8
1858
+
1859
+ provinces_to_highlight = {
1860
+ owned_by = ROOT
1861
+ num_free_building_slots = 1
1862
+ }
1863
+
1864
+ trigger = {
1865
+ calc_true_if = {
1866
+ all_owned_province = {
1867
+ NOT = {
1868
+ num_free_building_slots = 1
1869
+ }
1870
+ }
1871
+ amount = 10
1872
+ }
1873
+ }
1874
+
1875
+ effect = {
1876
+ custom_tooltip = geo_visionary_tt
1877
+ set_country_flag = geo_visionary_flag
1878
+ custom_tooltip = geo_georgia_legacy
1879
+ tooltip = {
1880
+ add_province_modifier = {
1881
+ name = geo_legacy_builder
1882
+ duration = -1
1883
+ }
1884
+ }
1885
+ hidden_effect = {
1886
+ samtskhe_area = {
1887
+ add_province_modifier = {
1888
+ name = geo_legacy_builder
1889
+ duration = -1
1890
+ }
1891
+ }
1892
+ imereti_area = {
1893
+ add_province_modifier = {
1894
+ name = geo_legacy_builder
1895
+ duration = -1
1896
+ }
1897
+ }
1898
+ kartli_kakheti_area = {
1899
+ add_province_modifier = {
1900
+ name = geo_legacy_builder
1901
+ duration = -1
1902
+ }
1903
+ }
1904
+ }
1905
+ }
1906
+ }
1907
+
1908
+ }
1909
+
1910
+ geo_fifth_branch = {
1911
+ slot = 5
1912
+ generic = no
1913
+ ai = yes
1914
+ potential_on_load = {
1915
+ has_dlc = "King of Kings"
1916
+ }
1917
+ potential = {
1918
+ tag = GEO
1919
+ NOT = { map_setup = map_setup_random }
1920
+ has_dlc = "King of Kings"
1921
+ }
1922
+ has_country_shield = yes
1923
+
1924
+ geo_cross_the_caucasus = {
1925
+ icon = mission_the_caucasus_rus
1926
+ required_missions = { geo_recover_strength }
1927
+ position = 2
1928
+
1929
+ provinces_to_highlight = {
1930
+ OR = {
1931
+ area = dagestan_area
1932
+ area = circassia_area
1933
+ }
1934
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1935
+ }
1936
+
1937
+ trigger = {
1938
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1939
+ OR = {
1940
+ area = dagestan_area
1941
+ area = circassia_area
1942
+ }
1943
+ value = 5
1944
+ }
1945
+ }
1946
+
1947
+ effect = {
1948
+ add_adm_power = 100
1949
+ add_country_modifier = {
1950
+ name = "geo_caucasian_campaign"
1951
+ duration = 7300
1952
+ }
1953
+ astrakhan_area = {
1954
+ limit = {
1955
+ NOT = { is_core = ROOT }
1956
+ NOT = { is_permanent_claim = ROOT }
1957
+ }
1958
+ add_permanent_claim = ROOT
1959
+ }
1960
+ azov_area = {
1961
+ limit = {
1962
+ NOT = { is_core = ROOT }
1963
+ NOT = { is_permanent_claim = ROOT }
1964
+ }
1965
+ add_permanent_claim = ROOT
1966
+ }
1967
+ crimea_area = {
1968
+ limit = {
1969
+ NOT = { is_core = ROOT }
1970
+ NOT = { is_permanent_claim = ROOT }
1971
+ }
1972
+ add_permanent_claim = ROOT
1973
+ }
1974
+ hidden_effect = {
1975
+ if = {
1976
+ limit = {
1977
+ calc_true_if = {
1978
+ all_subject_country = {
1979
+ capital_scope = {
1980
+ region = caucasia_region
1981
+ }
1982
+ }
1983
+ amount = 2
1984
+ }
1985
+ }
1986
+ add_country_modifier = {
1987
+ name = "geo_consolidate_caucasia"
1988
+ duration = 5475
1989
+ }
1990
+ }
1991
+ }
1992
+ if = {
1993
+ limit = {
1994
+ calc_true_if = {
1995
+ all_subject_country = {
1996
+ capital_scope = {
1997
+ region = caucasia_region
1998
+ }
1999
+ }
2000
+ amount = 2
2001
+ }
2002
+ }
2003
+ custom_tooltip = geo_consolidate_caucasia_tt_yes
2004
+ tooltip = {
2005
+ add_country_modifier = {
2006
+ name = "geo_consolidate_caucasia"
2007
+ duration = 5475
2008
+ }
2009
+ }
2010
+ }
2011
+ else = {
2012
+ custom_tooltip = geo_consolidate_caucasia_tt_no
2013
+ tooltip = {
2014
+ add_country_modifier = {
2015
+ name = "geo_consolidate_caucasia"
2016
+ duration = 5475
2017
+ }
2018
+ }
2019
+ }
2020
+ }
2021
+ }
2022
+
2023
+ geo_sack_sarai = {
2024
+ icon = mission_destroy_the_horde
2025
+ required_missions = { geo_cross_the_caucasus }
2026
+ position = 3
2027
+ provinces_to_highlight = {
2028
+ province_id = 466
2029
+ }
2030
+ trigger = {
2031
+ controls = 466
2032
+ }
2033
+ effect = {
2034
+ country_event = { id = flavor_geo.3 }
2035
+ custom_tooltip = geo_sack_sarai_insight_tt
2036
+ add_ruler_modifier = {
2037
+ name = "geo_bane_khagan"
2038
+ duration = -1
2039
+ }
2040
+ custom_tooltip = geo_bane_khagan_tt
2041
+ }
2042
+ }
2043
+
2044
+ geo_envoy_to_the_tsar = {
2045
+ icon = mission_the_russian_tsardom
2046
+ required_missions = { geo_sack_sarai }
2047
+ position = 5
2048
+ provinces_to_highlight = {
2049
+ if = {
2050
+ limit = {
2051
+ exists = MOS
2052
+ }
2053
+ owned_by = MOS
2054
+ }
2055
+ else_if = {
2056
+ limit = {
2057
+ exists = RUS
2058
+ }
2059
+ owned_by = RUS
2060
+ }
2061
+ }
2062
+ trigger = {
2063
+ if = {
2064
+ limit = {
2065
+ exists = MOS
2066
+ }
2067
+ OR = {
2068
+ alliance_with = MOS
2069
+ AND = {
2070
+ is_rival = MOS
2071
+ MOS = {
2072
+ NOT = {
2073
+ army_size = ROOT
2074
+ }
2075
+ }
2076
+ }
2077
+ }
2078
+ }
2079
+ else_if = {
2080
+ limit = {
2081
+ exists = RUS
2082
+ }
2083
+ OR = {
2084
+ alliance_with = RUS
2085
+ AND = {
2086
+ is_rival = RUS
2087
+ RUS = {
2088
+ NOT = {
2089
+ army_size = ROOT
2090
+ }
2091
+ }
2092
+ }
2093
+ }
2094
+ }
2095
+ else = {
2096
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2097
+ culture_group = east_slavic
2098
+ value = 10
2099
+ }
2100
+ }
2101
+ }
2102
+ effect = {
2103
+ if = {
2104
+ limit = {
2105
+ exists = MOS
2106
+ }
2107
+ if = {
2108
+ limit = {
2109
+ alliance_with = MOS
2110
+ }
2111
+ custom_tooltip = geo_alliance_muscovy_tt_yes
2112
+ tooltip = {
2113
+ custom_tooltip = geo_streltsy_capital
2114
+ add_country_modifier = {
2115
+ name = "geo_rus_alliance"
2116
+ duration = -1
2117
+ desc = geo_alliance_muscovy
2118
+ }
2119
+ }
2120
+ }
2121
+ else = {
2122
+ custom_tooltip = geo_alliance_muscovy_tt_no
2123
+ tooltip = {
2124
+ custom_tooltip = geo_streltsy_capital
2125
+ add_country_modifier = {
2126
+ name = "geo_rus_alliance"
2127
+ duration = -1
2128
+ desc = geo_alliance_muscovy
2129
+ }
2130
+ }
2131
+ }
2132
+ if = {
2133
+ limit = {
2134
+ is_rival = MOS
2135
+ MOS = {
2136
+ NOT = {
2137
+ army_size = ROOT
2138
+ }
2139
+ }
2140
+ }
2141
+ custom_tooltip = geo_rival_muscovy_tt_yes
2142
+ tooltip = {
2143
+ add_casus_belli = {
2144
+ type = cb_restore_personal_union
2145
+ months = 300
2146
+ target = MOS
2147
+ }
2148
+ }
2149
+ }
2150
+ else = {
2151
+ custom_tooltip = geo_rival_muscovy_tt_no
2152
+ tooltip = {
2153
+ add_casus_belli = {
2154
+ type = cb_restore_personal_union
2155
+ months = 300
2156
+ target = MOS
2157
+ }
2158
+ }
2159
+ }
2160
+ }
2161
+ else_if = {
2162
+ limit = {
2163
+ exists = RUS
2164
+ }
2165
+ if = {
2166
+ limit = {
2167
+ alliance_with = RUS
2168
+ }
2169
+ custom_tooltip = geo_alliance_russia_tt_yes
2170
+ tooltip = {
2171
+ custom_tooltip = geo_streltsy_capital
2172
+ add_country_modifier = {
2173
+ name = "geo_rus_alliance"
2174
+ duration = -1
2175
+ desc = geo_alliance_russia
2176
+ }
2177
+ }
2178
+ }
2179
+ else = {
2180
+ custom_tooltip = geo_alliance_russia_tt_no
2181
+ tooltip = {
2182
+ custom_tooltip = geo_streltsy_capital
2183
+ add_country_modifier = {
2184
+ name = "geo_rus_alliance"
2185
+ duration = -1
2186
+ desc = geo_alliance_russia
2187
+ }
2188
+ }
2189
+ }
2190
+ if = {
2191
+ limit = {
2192
+ is_rival = RUS
2193
+ RUS = {
2194
+ NOT = {
2195
+ army_size = ROOT
2196
+ }
2197
+ }
2198
+ }
2199
+ custom_tooltip = geo_rival_russia_tt_yes
2200
+ tooltip = {
2201
+ add_casus_belli = {
2202
+ type = cb_restore_personal_union
2203
+ months = 300
2204
+ target = RUS
2205
+ }
2206
+ }
2207
+ }
2208
+ else = {
2209
+ custom_tooltip = geo_rival_russia_tt_no
2210
+ tooltip = {
2211
+ add_casus_belli = {
2212
+ type = cb_restore_personal_union
2213
+ months = 300
2214
+ target = RUS
2215
+ }
2216
+ }
2217
+ }
2218
+ }
2219
+ else = {
2220
+ add_country_modifier = {
2221
+ name = "geo_embassies"
2222
+ duration = 9125
2223
+ }
2224
+ }
2225
+ hidden_effect = {
2226
+ if = {
2227
+ limit = {
2228
+ exists = MOS
2229
+ }
2230
+ if = {
2231
+ limit = {
2232
+ alliance_with = MOS
2233
+ }
2234
+ add_country_modifier = {
2235
+ name = "geo_rus_alliance"
2236
+ duration = -1
2237
+ desc = geo_alliance_muscovy
2238
+ }
2239
+ capital_scope = {
2240
+ streltsy_infantry = ROOT
2241
+ streltsy_infantry = ROOT
2242
+ streltsy_infantry = ROOT
2243
+ streltsy_infantry = ROOT
2244
+ streltsy_infantry = ROOT
2245
+ streltsy_infantry = ROOT
2246
+ streltsy_infantry = ROOT
2247
+ streltsy_infantry = ROOT
2248
+ streltsy_infantry = ROOT
2249
+ streltsy_infantry = ROOT
2250
+ streltsy_infantry = ROOT
2251
+ streltsy_infantry = ROOT
2252
+ streltsy_infantry = ROOT
2253
+ streltsy_infantry = ROOT
2254
+ streltsy_infantry = ROOT
2255
+ streltsy_infantry = ROOT
2256
+ streltsy_infantry = ROOT
2257
+ streltsy_infantry = ROOT
2258
+ streltsy_infantry = ROOT
2259
+ streltsy_infantry = ROOT
2260
+ }
2261
+ }
2262
+ if = {
2263
+ limit = {
2264
+ is_rival = MOS
2265
+ MOS = {
2266
+ NOT = {
2267
+ army_size = ROOT
2268
+ }
2269
+ }
2270
+ }
2271
+ add_casus_belli = {
2272
+ type = cb_restore_personal_union
2273
+ months = 300
2274
+ target = MOS
2275
+ }
2276
+ }
2277
+ }
2278
+ else_if = {
2279
+ limit = {
2280
+ exists = RUS
2281
+ }
2282
+ if = {
2283
+ limit = {
2284
+ alliance_with = RUS
2285
+ }
2286
+ add_country_modifier = {
2287
+ name = "geo_rus_alliance"
2288
+ duration = -1
2289
+ desc = geo_alliance_russia
2290
+ }
2291
+ capital_scope = {
2292
+ streltsy_infantry = ROOT
2293
+ streltsy_infantry = ROOT
2294
+ streltsy_infantry = ROOT
2295
+ streltsy_infantry = ROOT
2296
+ streltsy_infantry = ROOT
2297
+ streltsy_infantry = ROOT
2298
+ streltsy_infantry = ROOT
2299
+ streltsy_infantry = ROOT
2300
+ streltsy_infantry = ROOT
2301
+ streltsy_infantry = ROOT
2302
+ streltsy_infantry = ROOT
2303
+ streltsy_infantry = ROOT
2304
+ streltsy_infantry = ROOT
2305
+ streltsy_infantry = ROOT
2306
+ streltsy_infantry = ROOT
2307
+ streltsy_infantry = ROOT
2308
+ streltsy_infantry = ROOT
2309
+ streltsy_infantry = ROOT
2310
+ streltsy_infantry = ROOT
2311
+ streltsy_infantry = ROOT
2312
+ }
2313
+ }
2314
+ if = {
2315
+ limit = {
2316
+ is_rival = RUS
2317
+ RUS = {
2318
+ NOT = {
2319
+ army_size = ROOT
2320
+ }
2321
+ }
2322
+ }
2323
+ add_casus_belli = {
2324
+ type = cb_restore_personal_union
2325
+ months = 300
2326
+ target = RUS
2327
+ }
2328
+ }
2329
+ }
2330
+ }
2331
+ }
2332
+ }
2333
+
2334
+ geo_revive_native_literature = {
2335
+ icon = law_of_the_pious
2336
+ required_missions = { geo_rebuild_tbilisi }
2337
+ position = 7
2338
+
2339
+ trigger = {
2340
+ has_institution = renaissance
2341
+ OR = {
2342
+ prestige = 50
2343
+ AND = {
2344
+ has_adm_advisor_2 = yes
2345
+ has_dip_advisor_2 = yes
2346
+ has_mil_advisor_2 = yes
2347
+ }
2348
+ }
2349
+ }
2350
+ effect = {
2351
+ add_splendor = 100
2352
+ add_country_modifier = {
2353
+ name = "geo_second_golden_age"
2354
+ duration = 7300
2355
+ }
2356
+ }
2357
+ }
2358
+
2359
+ geo_cathedral_living_pillar = {
2360
+ icon = protectors_of_christendom
2361
+ required_missions = { geo_revive_native_literature }
2362
+ position = 8
2363
+ provinces_to_highlight = {
2364
+ province_id = 423
2365
+ NOT = {
2366
+ has_tax_building_trigger = yes
2367
+ }
2368
+ }
2369
+ trigger = {
2370
+ 423 = {
2371
+ owned_by = ROOT
2372
+ has_tax_building_trigger = yes
2373
+ }
2374
+ if = {
2375
+ limit = {
2376
+ has_estate = estate_church
2377
+ }
2378
+ estate_loyalty = {
2379
+ estate = estate_church
2380
+ loyalty = 60
2381
+ }
2382
+ }
2383
+ if = {
2384
+ limit = {
2385
+ has_estate = estate_church
2386
+ }
2387
+ OR = {
2388
+ num_of_estate_privileges = {
2389
+ estate = estate_church
2390
+ value = 4
2391
+ }
2392
+ num_of_estate_agendas_completed = {
2393
+ estate = estate_church
2394
+ value = 3
2395
+ }
2396
+ }
2397
+ }
2398
+ }
2399
+ effect = {
2400
+ if = {
2401
+ limit = {
2402
+ has_dlc = "Third Rome"
2403
+ religion = orthodox
2404
+ }
2405
+ custom_tooltip = geo_advisor_scaling_tt
2406
+ set_country_flag = geo_advisor_scaling_flag
2407
+ }
2408
+ else = {
2409
+ add_country_modifier = {
2410
+ name = "geo_religious_mission"
2411
+ duration = -1
2412
+ }
2413
+ }
2414
+ define_advisor = {
2415
+ type = inquisitor
2416
+ skill = 3
2417
+ culture = ROOT
2418
+ religion = ROOT
2419
+ cost_multiplier = 0.5
2420
+ }
2421
+ }
2422
+ }
2423
+
2424
+ geo_catholicos_patriarch = {
2425
+ icon = promote_the_patriarchate
2426
+ required_missions = { geo_cathedral_living_pillar }
2427
+ position = 9
2428
+ provinces_to_highlight = {
2429
+ owned_by = ROOT
2430
+ religion = ROOT
2431
+ OR = {
2432
+ NOT = {
2433
+ has_tax_building_trigger = yes
2434
+ }
2435
+ NOT = {
2436
+ has_state_patriach = yes
2437
+ }
2438
+ }
2439
+ }
2440
+ trigger = {
2441
+ num_of_owned_provinces_with = {
2442
+ has_tax_building_trigger = yes
2443
+ religion = ROOT
2444
+ value = 20
2445
+ }
2446
+ if = {
2447
+ limit = {
2448
+ has_dlc = "Third Rome"
2449
+ religion = orthodox
2450
+ }
2451
+ num_of_owned_provinces_with = {
2452
+ has_state_patriach = yes
2453
+ religion = orthodox
2454
+ value = 40
2455
+ }
2456
+ }
2457
+ }
2458
+ effect = {
2459
+ if = {
2460
+ limit = {
2461
+ religion = orthodox
2462
+ }
2463
+ custom_tooltip = geo_metropolitan_bonus_tt
2464
+ set_country_flag = geo_metropolitan_flag
2465
+ }
2466
+ if = {
2467
+ limit = {
2468
+ religion = orthodox
2469
+ has_dlc = "Third Rome"
2470
+ }
2471
+ if = {
2472
+ limit = {
2473
+ current_icon = icon_michael
2474
+ }
2475
+ custom_tooltip = geo_michael_icon_tt_yes
2476
+ tooltip = {
2477
+ add_country_modifier = {
2478
+ name = "geo_michael_bonus"
2479
+ duration = 7300
2480
+ }
2481
+ }
2482
+ }
2483
+ else = {
2484
+ custom_tooltip = geo_michael_icon_tt_no
2485
+ tooltip = {
2486
+ add_country_modifier = {
2487
+ name = "geo_michael_bonus"
2488
+ duration = 7300
2489
+ }
2490
+ }
2491
+ }
2492
+ if = {
2493
+ limit = {
2494
+ current_icon = icon_eleusa
2495
+ }
2496
+ custom_tooltip = geo_eleusa_icon_tt_yes
2497
+ tooltip = {
2498
+ add_country_modifier = {
2499
+ name = "geo_eleusa_bonus"
2500
+ duration = 7300
2501
+ }
2502
+ }
2503
+ }
2504
+ else = {
2505
+ custom_tooltip = geo_eleusa_icon_tt_no
2506
+ tooltip = {
2507
+ add_country_modifier = {
2508
+ name = "geo_eleusa_bonus"
2509
+ duration = 7300
2510
+ }
2511
+ }
2512
+ }
2513
+ if = {
2514
+ limit = {
2515
+ current_icon = icon_pancreator
2516
+ }
2517
+ custom_tooltip = geo_pantocrator_icon_tt_yes
2518
+ tooltip = {
2519
+ add_country_modifier = {
2520
+ name = "geo_christ_bonus"
2521
+ duration = 7300
2522
+ }
2523
+ }
2524
+ }
2525
+ else = {
2526
+ custom_tooltip = geo_pantocrator_icon_tt_no
2527
+ tooltip = {
2528
+ add_country_modifier = {
2529
+ name = "geo_christ_bonus"
2530
+ duration = 7300
2531
+ }
2532
+ }
2533
+ }
2534
+ if = {
2535
+ limit = {
2536
+ current_icon = icon_nicholas
2537
+ }
2538
+ custom_tooltip = geo_nicholas_icon_tt_yes
2539
+ tooltip = {
2540
+ add_country_modifier = {
2541
+ name = "geo_nicholas_bonus"
2542
+ duration = 7300
2543
+ }
2544
+ }
2545
+ }
2546
+ else = {
2547
+ custom_tooltip = geo_nicholas_icon_tt_no
2548
+ tooltip = {
2549
+ add_country_modifier = {
2550
+ name = "geo_nicholas_bonus"
2551
+ duration = 7300
2552
+ }
2553
+ }
2554
+ }
2555
+ if = {
2556
+ limit = {
2557
+ current_icon = icon_climacus
2558
+ }
2559
+ custom_tooltip = geo_john_icon_tt_yes
2560
+ tooltip = {
2561
+ add_country_modifier = {
2562
+ name = "geo_john_bonus"
2563
+ duration = 7300
2564
+ }
2565
+ }
2566
+ }
2567
+ else = {
2568
+ custom_tooltip = geo_john_icon_tt_no
2569
+ tooltip = {
2570
+ add_country_modifier = {
2571
+ name = "geo_john_bonus"
2572
+ duration = 7300
2573
+ }
2574
+ }
2575
+ }
2576
+ }
2577
+ if = {
2578
+ limit = {
2579
+ NOT = {
2580
+ religion = orthodox
2581
+ }
2582
+ }
2583
+ add_country_modifier = {
2584
+ name = geo_strengthen_the_true_faith
2585
+ duration = 7300
2586
+ }
2587
+ define_advisor = {
2588
+ type = theologian
2589
+ skill = 3
2590
+ culture = ROOT
2591
+ religion = ROOT
2592
+ cost_multiplier = 0.5
2593
+ }
2594
+ }
2595
+ hidden_effect = {
2596
+ if = {
2597
+ limit = {
2598
+ religion = orthodox
2599
+ has_dlc = "Third Rome"
2600
+ }
2601
+ if = {
2602
+ limit = {
2603
+ current_icon = icon_michael
2604
+ }
2605
+ add_country_modifier = {
2606
+ name = "geo_michael_bonus"
2607
+ duration = 7300
2608
+ }
2609
+ }
2610
+ if = {
2611
+ limit = {
2612
+ current_icon = icon_eleusa
2613
+ }
2614
+ add_country_modifier = {
2615
+ name = "geo_eleusa_bonus"
2616
+ duration = 7300
2617
+ }
2618
+ }
2619
+ if = {
2620
+ limit = {
2621
+ current_icon = icon_pancreator
2622
+ }
2623
+ add_country_modifier = {
2624
+ name = "geo_christ_bonus"
2625
+ duration = 7300
2626
+ }
2627
+ }
2628
+ if = {
2629
+ limit = {
2630
+ current_icon = icon_nicholas
2631
+ }
2632
+ add_country_modifier = {
2633
+ name = "geo_nicholas_bonus"
2634
+ duration = 7300
2635
+ }
2636
+ }
2637
+ if = {
2638
+ limit = {
2639
+ current_icon = icon_climacus
2640
+ }
2641
+ add_country_modifier = {
2642
+ name = "geo_john_bonus"
2643
+ duration = 7300
2644
+ }
2645
+ }
2646
+ }
2647
+ }
2648
+ }
2649
+ }
2650
+
2651
+
2652
+ }
missions/KoK_Mamluks_Missions.txt ADDED
@@ -0,0 +1,2180 @@
1
+ mam_missions_1 = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ OR = {
10
+ tag = EGY
11
+ tag = MAM
12
+ }
13
+ has_dlc = "King of Kings"
14
+ NOT = { map_setup = map_setup_random }
15
+ }
16
+ has_country_shield = yes
17
+
18
+ mam_mercantile_relationship = {
19
+ icon = mam_mercantile_relationship
20
+ required_missions = { }
21
+ position = 1
22
+ trigger = {
23
+ if = {
24
+ limit = {
25
+ VEN = { exists = yes }
26
+ }
27
+ root = {
28
+ navy_size = VEN
29
+ }
30
+ OR = {
31
+ AND = {
32
+ VEN = {
33
+ NOT = { alliance_with = ROOT }
34
+ custom_trigger_tooltip = {
35
+ tooltip = has_been_insulted_by_root
36
+ OR = {
37
+ has_opinion_modifier = {
38
+ who = ROOT
39
+ modifier = insulted
40
+ }
41
+ has_opinion_modifier = {
42
+ who = ROOT
43
+ modifier = scornfully_insulted
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ AND = {
50
+ VEN = {
51
+ alliance_with = ROOT
52
+ OR = {
53
+ has_opinion = {
54
+ who = ROOT
55
+ value = 150
56
+ }
57
+ trust = { who = ROOT value = 60 }
58
+ custom_trigger_tooltip = {
59
+ tooltip = has_grain_export_tt
60
+ has_ruler_modifier = grain_trade_imports_modifier
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ else = {
68
+ num_of_galley = 20
69
+ naval_reformer = 1
70
+ }
71
+ }
72
+ effect = {
73
+ if = {
74
+ limit = { alliance_with = VEN }
75
+ custom_tooltip = mam_reward_alliance_yes_tt
76
+ tooltip = {
77
+ 358 = {
78
+ if = {
79
+ limit = {
80
+ owned_by = ROOT
81
+ has_shipyard_building_trigger = no
82
+ }
83
+ add_building = shipyard
84
+ }
85
+ }
86
+ VEN = {
87
+ add_dip_power = 100
88
+ change_ruler_stat = {
89
+ type = dip
90
+ amount = 1
91
+ }
92
+ }
93
+ }
94
+ }
95
+ else_if = {
96
+ limit = { has_dlc = "Domination" }
97
+ custom_tooltip = mam_reward_alliance_no_tt
98
+ tooltip = {
99
+ 358 = {
100
+ if = {
101
+ limit = {
102
+ owned_by = ROOT
103
+ has_shipyard_building_trigger = no
104
+ }
105
+ add_building = shipyard
106
+ }
107
+ }
108
+ VEN = {
109
+ add_dip_power = 100
110
+ change_ruler_stat = {
111
+ type = dip
112
+ amount = 1
113
+ }
114
+ }
115
+ }
116
+ }
117
+ if = {
118
+ limit = {
119
+ NOT = { alliance_with = VEN }
120
+ has_dlc = "Domination"
121
+ }
122
+ custom_tooltip = mam_reward_rival_yes_tt
123
+ tooltip = {
124
+ home_trade_node_effect_scope = {
125
+ add_trade_modifier = {
126
+ who = ROOT
127
+ duration = 7300
128
+ power = 100
129
+ key = strong_mamluk_regulations_key
130
+ }
131
+ }
132
+ add_mercantilism = 3
133
+ }
134
+ }
135
+ else_if = {
136
+ limit = {
137
+ has_dlc = "Domination"
138
+ }
139
+ custom_tooltip = mam_reward_rival_no_tt
140
+ tooltip = {
141
+ home_trade_node_effect_scope = {
142
+ add_trade_modifier = {
143
+ who = ROOT
144
+ duration = 7300
145
+ power = 100
146
+ key = strong_mamluk_regulations_key
147
+ }
148
+ }
149
+ add_mercantilism = 3
150
+ }
151
+ }
152
+ else_if = {
153
+ limit = {
154
+ NOT = { has_dlc = "Domination" }
155
+ }
156
+ add_mercantilism = 3
157
+ add_dip_power = 100
158
+ change_ruler_stat = {
159
+ type = dip
160
+ amount = 1
161
+ }
162
+ }
163
+ hidden_effect = {
164
+ if = {
165
+ limit = { alliance_with = VEN }
166
+ VEN = {
167
+ add_dip_power = 100
168
+ change_ruler_stat = {
169
+ type = dip
170
+ amount = 1
171
+ }
172
+ }
173
+ add_country_modifier = {
174
+ name = mam_ven_cooperation_modifier
175
+ duration = -1
176
+ hidden = yes
177
+ }
178
+ 358 = {
179
+ if = {
180
+ limit = {
181
+ owned_by = ROOT
182
+ has_shipyard_building_trigger = no
183
+ }
184
+ add_building = shipyard
185
+ }
186
+ }
187
+ }
188
+ else = {
189
+ home_trade_node_effect_scope = {
190
+ add_trade_modifier = {
191
+ who = ROOT
192
+ duration = 7300
193
+ power = 100
194
+ key = strong_mamluk_regulations_key
195
+ }
196
+ }
197
+ add_mercantilism = 3
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ mam_establish_merchant_escorts = {
204
+ icon = mission_arabian_sea_trade
205
+ required_missions = { mam_mercantile_relationship mam_naval_enterprise }
206
+ position = 2
207
+ provinces_to_highlight = {
208
+ owned_by = ROOT
209
+ num_free_building_slots = 1
210
+ has_port = yes
211
+ }
212
+ trigger = {
213
+ num_of_owned_provinces_with = {
214
+ value = 3
215
+ has_coast_defense_building_trigger = yes
216
+ }
217
+ num_of_light_ship = 25
218
+ }
219
+ effect = {
220
+ if = {
221
+ limit = {
222
+ tag = MAM
223
+ }
224
+ custom_tooltip = mam_upgrade_national_idea_tt
225
+ set_country_flag = mam_upgrade_national_idea_flag
226
+ hidden_effect = {
227
+ swap_free_idea_group = yes
228
+ }
229
+ }
230
+ else = { add_dip_power = 100 }
231
+ create_admiral = { tradition = 70 }
232
+ }
233
+ }
234
+
235
+ kok_mam_holy_cities = {
236
+ icon = kok_mam_holy_cities
237
+ required_missions = { }
238
+ position = 4
239
+ provinces_to_highlight = {
240
+ OR = {
241
+ province_id = 384
242
+ province_id = 385
243
+ }
244
+ NOT = {
245
+ country_or_non_sovereign_subject_holds = ROOT
246
+ }
247
+ }
248
+ trigger = {
249
+ 384 = {
250
+ country_or_non_sovereign_subject_holds = ROOT
251
+ }
252
+ 385 = {
253
+ country_or_non_sovereign_subject_holds = ROOT
254
+ }
255
+ }
256
+ effect = {
257
+ arabia_region = {
258
+ limit = {
259
+ NOT = { is_core = ROOT }
260
+ NOT = { is_permanent_claim = ROOT }
261
+ }
262
+ add_permanent_claim = ROOT
263
+ }
264
+ country_event = { id = flavor_mam.23 }
265
+ custom_tooltip = flavor_mam.23_tt
266
+ custom_tooltip = enable_sponsor_hajj_dip_action_tt
267
+ set_country_flag = sponsor_hajj_dip_action_flag
268
+ }
269
+ }
270
+
271
+ mam_yemen = {
272
+ icon = mam_yemen
273
+ required_missions = { kok_mam_holy_cities }
274
+ position = 5
275
+ provinces_to_highlight = {
276
+ OR = {
277
+ area = tihama_al_yemen_area
278
+ area = upper_yemen_area
279
+ area = yemen_area
280
+ }
281
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
282
+ }
283
+ trigger = {
284
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
285
+ OR = {
286
+ area = tihama_al_yemen_area
287
+ area = upper_yemen_area
288
+ area = yemen_area
289
+ }
290
+ value = 6
291
+ }
292
+ 4280 = { country_or_non_sovereign_subject_holds = ROOT }
293
+ }
294
+ effect = {
295
+ country_event = { id = flavor_mam.105 }
296
+ custom_tooltip = flavor_mam.105_tt
297
+ }
298
+ }
299
+
300
+ mam_ethiopia = {
301
+ icon = mam_ethiopia
302
+ required_missions = { mam_yemen }
303
+ position = 7
304
+ provinces_to_highlight = {
305
+ region = horn_of_africa_region
306
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
307
+ }
308
+ trigger = {
309
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
310
+ region = horn_of_africa_region
311
+ value = 20
312
+ }
313
+ 1227 = { country_or_non_sovereign_subject_holds = ROOT }
314
+ 1224 = { country_or_non_sovereign_subject_holds = ROOT }
315
+ }
316
+ effect = {
317
+ country_event = { id = flavor_mam.106 }
318
+ custom_tooltip = flavor_mam.106_tt
319
+ if = {
320
+ limit = {
321
+ ETH = {
322
+ has_opinion = {
323
+ who = ROOT
324
+ value = 100
325
+ }
326
+ OR = {
327
+ is_subject_of = ROOT
328
+ alliance_with = ROOT
329
+ }
330
+ }
331
+ }
332
+ custom_tooltip = mam_eth_friendship_tt
333
+ }
334
+ else = {
335
+ custom_tooltip = mam_eth_no_friendship_tt
336
+ }
337
+ }
338
+ }
339
+
340
+ mam_recruit_the_mamluks = {
341
+ icon = mam_recruit_the_mamluks
342
+ required_missions = { }
343
+ position = 8
344
+ trigger = {
345
+ mamluks_percentage = 0.1
346
+ }
347
+ effect = {
348
+ custom_tooltip = mam_access_new_agendas_about_mamluks_tt
349
+ set_country_flag = mam_access_new_agendas_about_mamluks_flag
350
+
351
+ tripolitania_area = {
352
+ limit = {
353
+ NOT = { is_core = ROOT }
354
+ NOT = { is_permanent_claim = ROOT }
355
+ }
356
+ add_permanent_claim = ROOT
357
+ }
358
+ djerba_area = {
359
+ limit = {
360
+ NOT = { is_core = ROOT }
361
+ NOT = { is_permanent_claim = ROOT }
362
+ }
363
+ add_permanent_claim = ROOT
364
+ }
365
+ tunisia_area = {
366
+ limit = {
367
+ NOT = { is_core = ROOT }
368
+ NOT = { is_permanent_claim = ROOT }
369
+ }
370
+ add_permanent_claim = ROOT
371
+ }
372
+ }
373
+ }
374
+
375
+ mam_refine_the_furusiyya = {
376
+ icon = mam_refine_the_furusiyya
377
+ required_missions = { mam_recruit_the_mamluks }
378
+ position = 9
379
+ provinces_to_highlight = {
380
+
381
+ }
382
+ trigger = {
383
+ if = {
384
+ limit = { has_dlc = "Cradle of Civilization" }
385
+ OR = {
386
+ army_tradition = 50
387
+ army_professionalism = 0.3
388
+ }
389
+ }
390
+ else = { army_tradition = 50 }
391
+ #mamluks_percentage = 0.25 TODO
392
+ reform_level = 5
393
+ }
394
+ effect = {
395
+ unlock_government_reform = {
396
+ government_reform = modernized_furusiyya_reform
397
+ }
398
+ change_government_reform_progress = 50
399
+ }
400
+ }
401
+
402
+ mam_colonize_spice_islands = {
403
+ icon = mission_rb_colonise_spice_islands
404
+ required_missions = { mam_karimi_merchants }
405
+ position = 11
406
+ provinces_to_highlight = {
407
+ OR = {
408
+ province_id = 650
409
+ province_id = 649
410
+ }
411
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
412
+ }
413
+ trigger = {
414
+ 650 = { country_or_non_sovereign_subject_holds = ROOT }
415
+ 649 = { country_or_non_sovereign_subject_holds = ROOT }
416
+ }
417
+ effect = {
418
+ if = {
419
+ limit = {
420
+ 648 = { is_empty = yes }
421
+ }
422
+ 648 = {
423
+ add_core = ROOT
424
+ cede_province = ROOT
425
+ change_trade_goods = cloves
426
+ }
427
+ }
428
+ custom_tooltip = mam_1_merc_for_every_cloves_province_tt
429
+ hidden_effect = {
430
+ if = {
431
+ limit = {
432
+ tag = MAM
433
+ }
434
+ every_province = {
435
+ limit = {
436
+ country_or_non_sovereign_subject_holds = ROOT
437
+ trade_goods = cloves
438
+ }
439
+ MAM = { add_mercantilism = 1 }
440
+ }
441
+ }
442
+ else_if = {
443
+ limit = {
444
+ tag = EGY
445
+ }
446
+ every_province = {
447
+ limit = {
448
+ country_or_non_sovereign_subject_holds = ROOT
449
+ trade_goods = cloves
450
+ }
451
+ EGY = { add_mercantilism = 1 }
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+
459
+ mam_missions_2 = {
460
+ slot = 2
461
+ generic = no
462
+ ai = yes
463
+ potential_on_load = {
464
+ has_dlc = "King of Kings"
465
+ }
466
+ potential = {
467
+ OR = {
468
+ tag = EGY
469
+ tag = MAM
470
+ }
471
+ has_dlc = "King of Kings"
472
+ NOT = { map_setup = map_setup_random }
473
+ }
474
+ has_country_shield = yes
475
+
476
+ mam_naval_enterprise = {
477
+ icon = mission_launch_a_flagship
478
+ required_missions = { }
479
+ provinces_to_highlight = {
480
+
481
+ }
482
+ trigger = {
483
+ navy_size_percentage = 0.9
484
+ navy_size = 35
485
+ }
486
+ effect = {
487
+ country_event = { id = flavor_mam.100 }
488
+ custom_tooltip = flavor_mam.100_tt
489
+ }
490
+ }
491
+
492
+ mam_rhodes = {
493
+ icon = knights_of_the_new_world
494
+ required_missions = { mam_naval_enterprise }
495
+ position = 2
496
+ provinces_to_highlight = {
497
+ province_id = 320
498
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
499
+ }
500
+ trigger = {
501
+ 320 = { country_or_non_sovereign_subject_holds = ROOT }
502
+ }
503
+ effect = {
504
+ add_army_tradition = 10
505
+ if = {
506
+ limit = {
507
+ has_dlc = "Mandate of Heaven"
508
+ }
509
+ 358 = { add_prosperity = 50 }
510
+ 4316 = { add_prosperity = 50 }
511
+ }
512
+ else = {
513
+ add_prestige_or_monarch_power = { amount = 15 }
514
+ }
515
+ }
516
+ }
517
+
518
+ mam_pearl_mediterranean = {
519
+ icon = mission_rb_mediterranean_authority
520
+ required_missions = { mam_establish_merchant_escorts }
521
+ position = 3
522
+ provinces_to_highlight = {
523
+ OR = {
524
+ AND = {
525
+ is_capital = yes
526
+ owner = {
527
+ NOT = { tag = ROOT }
528
+ any_owned_province = {
529
+ has_port = yes
530
+ sea_zone = {
531
+ OR = {
532
+ area = eastern_mediterrenean_area
533
+ area = western_mediterrenean_area
534
+ }
535
+ }
536
+ }
537
+ navy_size = ROOT
538
+ }
539
+ }
540
+ AND = {
541
+ province_id = 358
542
+ NOT = { owned_by = ROOT }
543
+ }
544
+ }
545
+ }
546
+ trigger = {
547
+ navy_size = 200
548
+ OR = {
549
+ has_reform = maritime_military_reform
550
+ full_idea_group = naval_ideas
551
+ full_idea_group = maritime_ideas
552
+ }
553
+ custom_trigger_tooltip = {
554
+ tooltip = no_nation_med_stronger_navy_tt
555
+ NOT = {
556
+ any_known_country = {
557
+ any_owned_province = {
558
+ has_port = yes
559
+ sea_zone = {
560
+ OR = {
561
+ area = eastern_mediterrenean_area
562
+ area = western_mediterrenean_area
563
+ }
564
+ }
565
+ }
566
+ navy_size = ROOT
567
+ }
568
+ }
569
+ }
570
+ 358 = {
571
+ owned_by = ROOT
572
+ has_shipyard_building_trigger = yes
573
+ }
574
+ }
575
+ effect = {
576
+ if = {
577
+ limit = { has_dlc = "Golden Century" }
578
+ if = {
579
+ limit = { has_reform = maritime_military_reform }
580
+ custom_tooltip = mam_nav_prof_reward_yes_tt
581
+ }
582
+ else = { custom_tooltip = mam_navy_prof_reward_no_tt }
583
+ if = {
584
+ limit = { full_idea_group = naval_ideas }
585
+ custom_tooltip = mam_naval_ideas_yes_tt
586
+ tooltip = {
587
+ 358 = {
588
+ create_flagship = { type = heavy_ship }
589
+ }
590
+ }
591
+ }
592
+ else = {
593
+ custom_tooltip = mam_naval_ideas_no_tt
594
+ tooltip = {
595
+ 358 = {
596
+ create_flagship = { type = heavy_ship }
597
+ }
598
+ }
599
+ }
600
+ if = {
601
+ limit = { full_idea_group = maritime_ideas }
602
+ custom_tooltip = mam_maritime_ideas_yes_tt
603
+ tooltip = {
604
+ 358 = {
605
+ create_flagship = { type = light_ship }
606
+ }
607
+ }
608
+ }
609
+ else = {
610
+ custom_tooltip = mam_maritime_ideas_no_tt
611
+ tooltip = {
612
+ 358 = {
613
+ create_flagship = { type = light_ship }
614
+ }
615
+ }
616
+ }
617
+ hidden_effect = {
618
+ if = {
619
+ limit = { has_reform = maritime_military_reform }
620
+ set_country_flag = improve_nav_prof_flag
621
+ }
622
+ if = {
623
+ limit = { full_idea_group = naval_ideas }
624
+ 358 = {
625
+ create_flagship = { type = heavy_ship }
626
+ }
627
+ }
628
+ if = {
629
+ limit = { full_idea_group = maritime_ideas }
630
+ 358 = {
631
+ create_flagship = { type = light_ship }
632
+ }
633
+ }
634
+ }
635
+ }
636
+ else = {
637
+ add_navy_tradition = 25
638
+ add_mercantilism = 3
639
+ }
640
+ }
641
+ }
642
+
643
+ mam_arabia = {
644
+ icon = mam_arabia
645
+ required_missions = { kok_mam_holy_cities }
646
+ position = 5
647
+ provinces_to_highlight = {
648
+ region = arabia_region
649
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
650
+ }
651
+ trigger = {
652
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
653
+ region = arabia_region
654
+ value = 30
655
+ }
656
+ }
657
+ effect = {
658
+ unlock_estate_privilege = {
659
+ estate_privilege = estate_burghers_hydraulic_rights
660
+ }
661
+ if = {
662
+ limit = {
663
+ has_dlc = "Leviathan"
664
+ 403 = { country_or_non_sovereign_subject_holds = ROOT }
665
+ }
666
+ 403 = {
667
+ add_great_project_tier = {
668
+ type = nizwa_fort
669
+ tier = 1
670
+ }
671
+ }
672
+ }
673
+ 2999 = {
674
+ if = {
675
+ limit = {
676
+ NOT = { is_core = ROOT }
677
+ NOT = { is_permanent_claim = ROOT }
678
+ }
679
+ add_permanent_claim = ROOT
680
+ }
681
+ }
682
+ }
683
+ }
684
+
685
+ mam_hormuz_straits = {
686
+ icon = mam_hormuz_straits
687
+ required_missions = { mam_arabia }
688
+ position = 6
689
+ provinces_to_highlight = {
690
+ province_id = 2999
691
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
692
+ }
693
+ trigger = {
694
+ 2999 = { country_or_non_sovereign_subject_holds = ROOT }
695
+ }
696
+ effect = {
697
+ persian_gulf_coast = {
698
+ limit = {
699
+ NOT = { is_core = ROOT }
700
+ NOT = { is_permanent_claim = ROOT }
701
+ }
702
+ add_permanent_claim = ROOT
703
+ }
704
+ mogostan_area = {
705
+ limit = {
706
+ NOT = { is_core = ROOT }
707
+ NOT = { is_permanent_claim = ROOT }
708
+ }
709
+ add_permanent_claim = ROOT
710
+ }
711
+ makran_area = {
712
+ limit = {
713
+ NOT = { is_core = ROOT }
714
+ NOT = { is_permanent_claim = ROOT }
715
+ }
716
+ add_permanent_claim = ROOT
717
+ }
718
+ 2999 = {
719
+ if = {
720
+ limit = {
721
+ NOT = { province_has_center_of_trade_of_level = 2 }
722
+ has_dlc = "Dharma"
723
+ }
724
+ add_center_of_trade_level = 1
725
+ }
726
+ else = {
727
+ add_base_production = 2
728
+ }
729
+ }
730
+ }
731
+ }
732
+
733
+ mam_highway_empire = {
734
+ icon = mam_highway_empire
735
+ required_missions = { mam_alexandrian_trade }
736
+ position = 9
737
+ provinces_to_highlight = {
738
+ OR = {
739
+ province_id = 4316
740
+ province_id = 2315
741
+ }
742
+ }
743
+ trigger = {
744
+ if = {
745
+ limit = { has_dlc = "Leviathan" }
746
+ 4316 = {
747
+ owned_by = ROOT
748
+ OR = {
749
+ num_of_times_improved = 10
750
+ has_great_project = {
751
+ type = suez_canal
752
+ tier = 3
753
+ }
754
+ }
755
+ }
756
+ 4316 = { has_any_ongoing_construction = no }
757
+ }
758
+ else = {
759
+ 4316 = { num_of_times_improved = 10 }
760
+ }
761
+ 2315 = { owned_by = ROOT }
762
+ is_at_war = no
763
+ }
764
+ effect = {
765
+ if = {
766
+ limit = {
767
+ has_dlc = "Leviathan"
768
+ 4316 = {
769
+ NOT = {
770
+ has_great_project = {
771
+ type = suez_canal
772
+ tier = 3
773
+ }
774
+ }
775
+ }
776
+ NOT = { adm_tech = 22 }
777
+ }
778
+ country_event = { id = flavor_mam.115 }
779
+ custom_tooltip = flavor_mam.115_tt
780
+ }
781
+ else = {
782
+ 4316 = { add_base_production = 3 }
783
+ }
784
+ add_mercantilism = 3
785
+ }
786
+ }
787
+
788
+ mam_karimi_merchants = {
789
+ icon = mission_restore_trade_superiority
790
+ required_missions = { }
791
+ position = 10
792
+ provinces_to_highlight = {
793
+ province_id = 358
794
+ }
795
+ trigger = {
796
+ if = {
797
+ limit = { ai = no }
798
+ trader = 3
799
+ }
800
+ else = { trader = 1 }
801
+ OR = {
802
+ AND = {
803
+ if = {
804
+ limit = { ai = no }
805
+ estate_loyalty = {
806
+ estate = estate_burghers
807
+ loyalty = 70
808
+ }
809
+ }
810
+ else = {
811
+ estate_loyalty = {
812
+ estate = estate_burghers
813
+ loyalty = 60
814
+ }
815
+ }
816
+ has_estate_privilege = estate_burghers_fund_karimi
817
+ }
818
+ trading_bonus = {
819
+ trade_goods = cloves
820
+ value = yes
821
+ }
822
+ 358 = { #Αλεξάνδρεια
823
+ trade_share = {
824
+ country = ROOT
825
+ share = 51
826
+ }
827
+ }
828
+ }
829
+ }
830
+ effect = {
831
+ unlock_government_reform = {
832
+ government_reform = karimi_stations_reform
833
+ }
834
+ 361 = {
835
+ change_trade_goods = cloves
836
+ }
837
+ }
838
+ }
839
+
840
+ mam_harness_spice_trade = {
841
+ icon = mam_harness_spice_trade
842
+ required_missions = { mam_karimi_merchants }
843
+ position = 11
844
+ provinces_to_highlight = {
845
+ province_id = 358
846
+ }
847
+ trigger = {
848
+ OR = {
849
+ exploration_ideas = 1
850
+ mercantilism = 30
851
+ full_idea_group = trade_ideas
852
+ }
853
+ OR = {
854
+ custom_trigger_tooltip = {
855
+ tooltip = no_westerner_trading_in_cloves_tt
856
+ NOT = {
857
+ any_known_country = {
858
+ technology_group = western
859
+ trading_bonus = {
860
+ trade_goods = cloves
861
+ value = yes
862
+ }
863
+ }
864
+ }
865
+ }
866
+ 358 = {
867
+ trade_node_value = 30
868
+ }
869
+ }
870
+ }
871
+ effect = {
872
+ create_explorer = { tradition = 75 }
873
+ if = {
874
+ limit = { has_estate = estate_burghers }
875
+ add_estate_loyalty = {
876
+ estate = estate_burghers
877
+ loyalty = 20
878
+ }
879
+ }
880
+ else = { add_mercantilism = 2}
881
+ unlock_estate_privilege = {
882
+ estate_privilege = estate_burghers_foreign_expeditions
883
+ }
884
+ }
885
+ }
886
+ }
887
+
888
+ mam_missions_3 = {
889
+ slot = 3
890
+ generic = no
891
+ ai = yes
892
+ potential_on_load = {
893
+ has_dlc = "King of Kings"
894
+ }
895
+ potential = {
896
+ OR = {
897
+ tag = EGY
898
+ tag = MAM
899
+ }
900
+ has_dlc = "King of Kings"
901
+ NOT = { map_setup = map_setup_random }
902
+ }
903
+ has_country_shield = yes
904
+
905
+ mam_cyprus = {
906
+ icon = kingdom_of_cyprus
907
+ required_missions = { mam_naval_enterprise }
908
+ position = 2
909
+ provinces_to_highlight = {
910
+ province_id = 321
911
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
912
+ }
913
+ trigger = {
914
+ 321 = { country_or_non_sovereign_subject_holds = ROOT }
915
+ }
916
+ effect = {
917
+ if = {
918
+ limit = { has_dlc = "Mandate of Heaven" }
919
+ add_splendor = 100
920
+ }
921
+ else = { add_mil_power = 50 }
922
+ thrace_area = {
923
+ limit = {
924
+ NOT = { is_core = ROOT }
925
+ NOT = { is_permanent_claim = ROOT }
926
+ }
927
+ add_permanent_claim = ROOT
928
+ }
929
+ change_ruler_stat = {
930
+ type = dip
931
+ amount = 1
932
+ }
933
+ }
934
+ }
935
+
936
+ mam_great_power = {
937
+ icon = mam_great_power
938
+ required_missions = { mam_pearl_mediterranean mam_constantinople }
939
+ position = 4
940
+
941
+ trigger = {
942
+ if = {
943
+ limit = {
944
+ OR = {
945
+ has_dlc = "Rights of Man"
946
+ has_dlc = "Emperor"
947
+ }
948
+ has_dlc = "Emperor"
949
+ }
950
+ OR = {
951
+ is_hegemon = yes
952
+ NOT = { great_power_rank = 2 }
953
+ }
954
+ }
955
+ else_if = {
956
+ limit = { has_dlc = "Rights of Man" }
957
+ NOT = { great_power_rank = 2 }
958
+ }
959
+ else = { total_development = 1500 }
960
+ }
961
+ effect = {
962
+ if = {
963
+ limit = {
964
+ tag = MAM
965
+ has_government_mechanic = mamluk_mechanic
966
+ }
967
+ custom_tooltip = promote_culture_government_duration_doubled_tt
968
+ set_country_flag = promote_culture_government_duration_doubled_flag
969
+ add_government_power = {
970
+ mechanic_type = mamluk_mechanic
971
+ power_type = mamluk_adm_power
972
+ value = 50
973
+ }
974
+ add_government_power = {
975
+ mechanic_type = mamluk_mechanic
976
+ power_type = mamluk_dip_power
977
+ value = 50
978
+ }
979
+ add_government_power = {
980
+ mechanic_type = mamluk_mechanic
981
+ power_type = mamluk_mil_power
982
+ value = 50
983
+ }
984
+ }
985
+ else_if = {
986
+ limit = {
987
+ tag = MAM
988
+ NOT = { has_government_mechanic = mamluk_mechanic }
989
+ }
990
+ add_prestige_or_monarch_power = { amount = 50 }
991
+ change_ruler_stat = {
992
+ type = adm
993
+ amount = 1
994
+ }
995
+ change_ruler_stat = {
996
+ type = dip
997
+ amount = 1
998
+ }
999
+ change_ruler_stat = {
1000
+ type = mil
1001
+ amount = 1
1002
+ }
1003
+ }
1004
+ if = {
1005
+ limit = {
1006
+ tag = EGY
1007
+ has_government_mechanic = egyptian_westernization
1008
+ }
1009
+ if = {
1010
+ limit = { has_dlc = "Rule Britannia" }
1011
+ change_innovativeness = 5
1012
+ }
1013
+ custom_tooltip = egyptian_westernization_costs_less_tt
1014
+ set_country_flag = egyptian_westernization_costs_less_flag
1015
+ add_government_power = {
1016
+ mechanic_type = egyptian_westernization
1017
+ power_type = egyptian_westernization
1018
+ value = 25
1019
+ }
1020
+ }
1021
+ else_if = {
1022
+ limit = {
1023
+ tag = EGY
1024
+ NOT = { has_government_mechanic = egyptian_westernization }
1025
+ }
1026
+ add_prestige_or_monarch_power = { amount = 50 }
1027
+ change_ruler_stat = {
1028
+ type = adm
1029
+ amount = 1
1030
+ }
1031
+ change_ruler_stat = {
1032
+ type = dip
1033
+ amount = 1
1034
+ }
1035
+ change_ruler_stat = {
1036
+ type = mil
1037
+ amount = 1
1038
+ }
1039
+ }
1040
+ }
1041
+ }
1042
+
1043
+ mam_baghdad = {
1044
+ icon = mam_baghdad
1045
+ required_missions = { }
1046
+ position = 5
1047
+ provinces_to_highlight = {
1048
+ OR = {
1049
+ area = al_jazira_area
1050
+ area = iraq_arabi_area
1051
+ }
1052
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1053
+ }
1054
+ trigger = {
1055
+ al_jazira_area = {
1056
+ type = all
1057
+ country_or_non_sovereign_subject_holds = ROOT
1058
+ }
1059
+ iraq_arabi_area = {
1060
+ type = all
1061
+ country_or_non_sovereign_subject_holds = ROOT
1062
+ }
1063
+ }
1064
+ effect = {
1065
+ if = {
1066
+ limit = {
1067
+ religion_group = muslim
1068
+ has_dlc = "Cradle of Civilization"
1069
+ }
1070
+ if = {
1071
+ limit = { piety = 0 }
1072
+ add_piety = 0.1
1073
+ }
1074
+ else = { add_piety = -0.1 }
1075
+ }
1076
+ else = { add_prestige_or_monarch_power = { amount = 15 } }
1077
+ basra_area = {
1078
+ limit = {
1079
+ NOT = { is_core = ROOT }
1080
+ NOT = { is_permanent_claim = ROOT }
1081
+ }
1082
+ add_permanent_claim = ROOT
1083
+ }
1084
+ khuzestan_area = {
1085
+ limit = {
1086
+ NOT = { is_core = ROOT }
1087
+ NOT = { is_permanent_claim = ROOT }
1088
+ }
1089
+ add_permanent_claim = ROOT
1090
+ }
1091
+ shahrizor_area = {
1092
+ limit = {
1093
+ NOT = { is_core = ROOT }
1094
+ NOT = { is_permanent_claim = ROOT }
1095
+ }
1096
+ add_permanent_claim = ROOT
1097
+ }
1098
+ tabriz_area = {
1099
+ limit = {
1100
+ NOT = { is_core = ROOT }
1101
+ NOT = { is_permanent_claim = ROOT }
1102
+ }
1103
+ add_permanent_claim = ROOT
1104
+ }
1105
+
1106
+ define_advisor = {
1107
+ type = natural_scientist
1108
+ cost_multiplier = 0.5
1109
+ skill = 3
1110
+ }
1111
+ }
1112
+ }
1113
+
1114
+ mam_basrah = {
1115
+ icon = mam_basrah
1116
+ required_missions = { mam_baghdad }
1117
+ position = 6
1118
+ provinces_to_highlight = {
1119
+ OR = {
1120
+ area = khuzestan_area
1121
+ area = basra_area
1122
+ }
1123
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1124
+ }
1125
+ trigger = {
1126
+ OR = {
1127
+ 1335 = {
1128
+ trade_share = {
1129
+ country = ROOT
1130
+ share = 40
1131
+ }
1132
+ }
1133
+ AND = {
1134
+ khuzestan_area = {
1135
+ type = all
1136
+ country_or_non_sovereign_subject_holds = ROOT
1137
+ }
1138
+ basra_area = {
1139
+ type = all
1140
+ country_or_non_sovereign_subject_holds = ROOT
1141
+ }
1142
+ }
1143
+ }
1144
+ }
1145
+ effect = {
1146
+ add_country_modifier = {
1147
+ name = mam_goods_from_the_east_modifier
1148
+ duration = 7300
1149
+ }
1150
+ add_mercantilism = 3
1151
+ }
1152
+ }
1153
+
1154
+ mam_alexandrian_trade = {
1155
+ icon = mission_conquer_alexandria
1156
+ required_missions = { }
1157
+ position = 8
1158
+ provinces_to_highlight = {
1159
+ OR = {
1160
+ province_id = 358
1161
+ province_id = 362
1162
+ province_id = 363
1163
+ }
1164
+ OR = {
1165
+ NOT = { owned_by = ROOT }
1166
+ has_trade_building_trigger = no
1167
+ }
1168
+ }
1169
+ trigger = {
1170
+ 358 = { owned_by = ROOT has_trade_building_trigger = yes }
1171
+ 362 = { owned_by = ROOT has_trade_building_trigger = yes }
1172
+ 363 = { owned_by = ROOT has_trade_building_trigger = yes }
1173
+ }
1174
+ effect = {
1175
+ custom_tooltip = mam_indebted_privilege_no_merc_loss_tt
1176
+ set_country_flag = no_mercantilism_loss_estate_privilege_flag
1177
+
1178
+ if = {
1179
+ limit = { has_dlc = "Mandate of Heaven" }
1180
+ custom_tooltip = mam_trade_building_prosperity_tt
1181
+ set_country_flag = mam_trade_building_prosperity_flag
1182
+ }
1183
+ else = { add_years_of_estate_land_income = 0.25 }
1184
+ }
1185
+ }
1186
+
1187
+ mam_father_african_rivers = {
1188
+ icon = mission_se_along_the_river
1189
+ required_missions = { mam_alexandrian_trade }
1190
+ position = 9
1191
+ provinces_to_highlight = {
1192
+ OR = {
1193
+ province_id = 362
1194
+ province_id = 363
1195
+ province_id = 2316
1196
+ province_id = 361
1197
+ province_id = 359
1198
+ area = vostani_area
1199
+ area = said_area
1200
+ }
1201
+ owned_by = ROOT
1202
+ if = {
1203
+ limit = { has_dlc = "Mandate of Heaven" }
1204
+ OR = {
1205
+ is_prosperous = no
1206
+ NOT = { num_of_times_improved = 1 }
1207
+ NOT = { num_of_buildings_in_province = 1 }
1208
+ }
1209
+ }
1210
+ else = {
1211
+ OR = {
1212
+ NOT = { num_of_times_improved = 1 }
1213
+ NOT = { num_of_buildings_in_province = 1 }
1214
+ }
1215
+ }
1216
+ }
1217
+ trigger = {
1218
+ custom_trigger_tooltip = {
1219
+ tooltip = mam_every_province_nile_tt
1220
+ 362 = {
1221
+ owned_by = ROOT
1222
+ OR = {
1223
+ num_of_buildings_in_province = 1
1224
+ num_of_times_improved = 1
1225
+ is_prosperous = yes
1226
+ }
1227
+ }
1228
+ 363 = {
1229
+ owned_by = ROOT
1230
+ OR = {
1231
+ num_of_buildings_in_province = 1
1232
+ num_of_times_improved = 1
1233
+ is_prosperous = yes
1234
+ }
1235
+ }
1236
+ 2316 = {
1237
+ owned_by = ROOT
1238
+ OR = {
1239
+ num_of_buildings_in_province = 1
1240
+ num_of_times_improved = 1
1241
+ is_prosperous = yes
1242
+ }
1243
+ }
1244
+ 361 = {
1245
+ owned_by = ROOT
1246
+ OR = {
1247
+ num_of_buildings_in_province = 1
1248
+ num_of_times_improved = 1
1249
+ is_prosperous = yes
1250
+ }
1251
+ }
1252
+ 359 = {
1253
+ owned_by = ROOT
1254
+ OR = {
1255
+ num_of_buildings_in_province = 1
1256
+ num_of_times_improved = 1
1257
+ is_prosperous = yes
1258
+ }
1259
+ }
1260
+ vostani_area = {
1261
+ owned_by = ROOT
1262
+ type = all
1263
+ OR = {
1264
+ num_of_buildings_in_province = 1
1265
+ num_of_times_improved = 1
1266
+ is_prosperous = yes
1267
+ }
1268
+ }
1269
+ said_area = {
1270
+ owned_by = ROOT
1271
+ type = all
1272
+ OR = {
1273
+ num_of_buildings_in_province = 1
1274
+ num_of_times_improved = 1
1275
+ is_prosperous = yes
1276
+ }
1277
+ }
1278
+ }
1279
+ }
1280
+ effect = {
1281
+ custom_tooltip = mam_every_province_across_nile_tt
1282
+ unlock_estate_privilege = {
1283
+ estate_privilege = estate_burghers_nile_goods_transport
1284
+ }
1285
+ hidden_effect = {
1286
+ every_owned_province = {
1287
+ limit = {
1288
+ OR = {
1289
+ province_id = 362
1290
+ province_id = 363
1291
+ province_id = 2316
1292
+ province_id = 361
1293
+ province_id = 359
1294
+ area = vostani_area
1295
+ area = said_area
1296
+ }
1297
+ }
1298
+ add_base_production = 1
1299
+ }
1300
+ }
1301
+ }
1302
+ }
1303
+
1304
+ mam_dar_al_hadith_turba = {
1305
+ icon = reform_the_nomocanon
1306
+ required_missions = { }
1307
+ position = 11
1308
+ trigger = {
1309
+ if = {
1310
+ limit = {
1311
+ has_dlc = "Rule Britannia"
1312
+ has_estate = estate_church
1313
+ }
1314
+ OR = {
1315
+ innovativeness = 20
1316
+ AND = {
1317
+ estate_loyalty = {
1318
+ estate = estate_church
1319
+ loyalty = 60
1320
+ }
1321
+ OR = {
1322
+ has_estate_privilege = estate_church_fund_dar_al_hadith
1323
+ has_estate_privilege = estate_church_fund_madrasas
1324
+ }
1325
+ }
1326
+ }
1327
+ }
1328
+ else_if = {
1329
+ limit = {
1330
+ has_dlc = "Rule Britannia"
1331
+ NOT = { has_estate = estate_church }
1332
+ }
1333
+ innovativeness = 20
1334
+ stability = 2
1335
+ }
1336
+ else_if = {
1337
+ limit = {
1338
+ NOT = { has_dlc = "Rule Britannia" }
1339
+ has_estate = estate_church
1340
+ }
1341
+ adm_tech = 7
1342
+ AND = {
1343
+ estate_loyalty = {
1344
+ estate = estate_church
1345
+ loyalty = 60
1346
+ }
1347
+ OR = {
1348
+ has_estate_privilege = estate_church_fund_dar_al_hadith
1349
+ has_estate_privilege = estate_church_fund_madrasas
1350
+ }
1351
+ }
1352
+ }
1353
+ else = {
1354
+ stability = 2
1355
+ prestige = 30
1356
+ }
1357
+ years_of_income = 2
1358
+ }
1359
+ effect = {
1360
+ country_event = { id = flavor_mam.101 }
1361
+ custom_tooltip = flavor_mam.101_tt
1362
+ }
1363
+ }
1364
+ }
1365
+
1366
+ mam_missions_4 = {
1367
+ slot = 4
1368
+ generic = no
1369
+ ai = yes
1370
+ potential_on_load = {
1371
+ has_dlc = "King of Kings"
1372
+ }
1373
+ potential = {
1374
+ OR = {
1375
+ tag = EGY
1376
+ tag = MAM
1377
+ }
1378
+ has_dlc = "King of Kings"
1379
+ NOT = { map_setup = map_setup_random }
1380
+ }
1381
+ has_country_shield = yes
1382
+
1383
+ mam_reincorporate_northern_territories = {
1384
+ icon = mam_reincorporate_northern_territories
1385
+ required_missions = { }
1386
+ position = 1
1387
+ provinces_to_highlight = {
1388
+ OR = {
1389
+ area = syria_area
1390
+ province_id = 1849
1391
+ province_id = 2313
1392
+ province_id = 377
1393
+ }
1394
+ }
1395
+ trigger = {
1396
+ if = {
1397
+ limit = {
1398
+ NOT = { is_year = 1446 }
1399
+ }
1400
+ custom_trigger_tooltip = {
1401
+ tooltip = mam_had_administration_syria_event_tt
1402
+ has_country_flag = mam_had_administration_syria_event_flag
1403
+ }
1404
+ }
1405
+ OR = {
1406
+ if = {
1407
+ limit = {
1408
+ OR = {
1409
+ has_dlc = "Res Publica"
1410
+ has_dlc = "Common Sense"
1411
+ }
1412
+ }
1413
+ national_focus = ADM
1414
+ }
1415
+ has_adm_advisor = yes
1416
+ stability = 1
1417
+ }
1418
+ syria_area = {
1419
+ type = all
1420
+ country_or_non_sovereign_subject_holds = ROOT
1421
+ }
1422
+ aleppo_area = {
1423
+ type = all
1424
+ OR = {
1425
+ country_or_non_sovereign_subject_holds = ROOT
1426
+ province_id = 4298
1427
+ }
1428
+ }
1429
+ if = {
1430
+ limit = {
1431
+ SYR = { is_subject_of = ROOT }
1432
+ has_country_flag = mam_intervened_syria
1433
+ }
1434
+ SYR = {
1435
+ NOT = { liberty_desire = 50 }
1436
+ }
1437
+ }
1438
+ else_if = {
1439
+ limit = {
1440
+ SYR = { is_subject_of = ROOT }
1441
+ }
1442
+ SYR = {
1443
+ NOT = { liberty_desire = 25 }
1444
+ }
1445
+ }
1446
+ syria_area = {
1447
+ type = all
1448
+ country_or_non_sovereign_subject_holds = ROOT
1449
+ }
1450
+ aleppo_area = {
1451
+ type = all
1452
+ OR = {
1453
+ country_or_non_sovereign_subject_holds = ROOT
1454
+ province_id = 4298
1455
+ }
1456
+ }
1457
+ }
1458
+ effect = {
1459
+ clr_country_flag = mam_intervened_syria
1460
+ anatolia_region = {
1461
+ limit = {
1462
+ NOT = { is_core = ROOT }
1463
+ NOT = { is_permanent_claim = ROOT }
1464
+ }
1465
+ add_permanent_claim = ROOT
1466
+ }
1467
+ if = {
1468
+ limit = { has_dlc = "Mandate of Heaven" }
1469
+ syria_area = { add_prosperity = 25 }
1470
+ aleppo_area = { add_prosperity = 25 }
1471
+ }
1472
+ else = {
1473
+ 382 = { add_random_development = 1 }
1474
+ 377 = { add_random_development = 1 }
1475
+ }
1476
+ }
1477
+ }
1478
+
1479
+ mam_anatolia = {
1480
+ icon = anatolian_frontier
1481
+ required_missions = { mam_reincorporate_northern_territories }
1482
+ position = 2
1483
+ provinces_to_highlight = {
1484
+ region = anatolia_region
1485
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1486
+ }
1487
+ trigger = {
1488
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1489
+ value = 20
1490
+ region = anatolia_region
1491
+ }
1492
+ }
1493
+ effect = {
1494
+ balkan_region = {
1495
+ limit = {
1496
+ NOT = { is_core = ROOT }
1497
+ NOT = { is_permanent_claim = ROOT }
1498
+ }
1499
+ add_permanent_claim = ROOT
1500
+ }
1501
+ change_ruler_stat = {
1502
+ type = mil
1503
+ amount = 1
1504
+ }
1505
+ }
1506
+ }
1507
+ mam_constantinople = {
1508
+ icon = mission_constantinople
1509
+ required_missions = { mam_cyprus mam_anatolia }
1510
+ position = 3
1511
+ provinces_to_highlight = {
1512
+ area = thrace_area
1513
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1514
+ }
1515
+ trigger = {
1516
+ thrace_area = {
1517
+ type = all
1518
+ country_or_non_sovereign_subject_holds = ROOT
1519
+ }
1520
+ }
1521
+ effect = {
1522
+ country_event = { id = flavor_mam.112 }
1523
+ custom_tooltip = flavor_mam.112_tt
1524
+ }
1525
+ }
1526
+
1527
+ mam_tabriz = {
1528
+ icon = mam_tabriz
1529
+ required_missions = { }
1530
+ position = 5
1531
+ provinces_to_highlight = {
1532
+ area = tabriz_area
1533
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1534
+ }
1535
+ trigger = {
1536
+ tabriz_area = {
1537
+ type = all
1538
+ country_or_non_sovereign_subject_holds = ROOT
1539
+ }
1540
+ }
1541
+ effect = {
1542
+ persia_region = {
1543
+ limit = {
1544
+ NOT = { is_core = ROOT }
1545
+ NOT = { is_permanent_claim = ROOT }
1546
+ }
1547
+ add_permanent_claim = ROOT
1548
+ }
1549
+ if = {
1550
+ limit = {
1551
+ has_dlc = "Rights of Man"
1552
+ NOT = { num_of_ruler_traits = { amount = 3 } }
1553
+ }
1554
+ add_ruler_personality = strict_personality
1555
+ }
1556
+ else = { add_army_tradition = 10 }
1557
+ }
1558
+ }
1559
+
1560
+ mam_persia = {
1561
+ icon = mam_persia
1562
+ required_missions = { mam_tabriz }
1563
+ position = 6
1564
+ provinces_to_highlight = {
1565
+ region = persia_region
1566
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1567
+ }
1568
+ trigger = {
1569
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1570
+ region = persia_region
1571
+ value = 25
1572
+ }
1573
+ 428 = { country_or_non_sovereign_subject_holds = ROOT }
1574
+ 429 = { country_or_non_sovereign_subject_holds = ROOT }
1575
+ }
1576
+ effect = {
1577
+ country_event = { id = flavor_mam.114 }
1578
+ custom_tooltip = flavor_mam.114_tt
1579
+ }
1580
+ }
1581
+
1582
+ mam_unify_islam = {
1583
+ icon = mission_islamic_golden_age
1584
+ position = 7
1585
+ required_missions = { mam_basrah mam_persia mam_morocco }
1586
+ provinces_to_highlight = {
1587
+ OR = {
1588
+ province_id = 504
1589
+ province_id = 225
1590
+ province_id = 151
1591
+ province_id = 410
1592
+ province_id = 385
1593
+ province_id = 384
1594
+ province_id = 124
1595
+ province_id = 125
1596
+ province_id = 425
1597
+ province_id = 382
1598
+ province_id = 454
1599
+ province_id = 347
1600
+ province_id = 388
1601
+ province_id = 400
1602
+ }
1603
+ OR = {
1604
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1605
+ }
1606
+ }
1607
+ trigger = {
1608
+ if = {
1609
+ limit = {
1610
+ NOT = {
1611
+ has_dlc = "Star and Crescent"
1612
+ }
1613
+ }
1614
+ religion_group = muslim
1615
+ owns_or_non_sovereign_subject_of = 504
1616
+ owns_or_non_sovereign_subject_of = 225
1617
+ owns_or_non_sovereign_subject_of = 151
1618
+ owns_or_non_sovereign_subject_of = 410
1619
+ owns_or_non_sovereign_subject_of = 385
1620
+ owns_or_non_sovereign_subject_of = 384
1621
+ owns_or_non_sovereign_subject_of = 124
1622
+ owns_or_non_sovereign_subject_of = 125
1623
+ owns_or_non_sovereign_subject_of = 425
1624
+ owns_or_non_sovereign_subject_of = 382
1625
+ owns_or_non_sovereign_subject_of = 454
1626
+ owns_or_non_sovereign_subject_of = 347
1627
+ owns_or_non_sovereign_subject_of = 388
1628
+ owns_or_non_sovereign_subject_of = 400
1629
+ }
1630
+ else = {
1631
+ custom_trigger_tooltip = {
1632
+ tooltip = unified_islam_tt
1633
+ has_country_modifier = unified_islam
1634
+ }
1635
+ }
1636
+ }
1637
+ effect = {
1638
+ add_country_modifier = {
1639
+ name = protector_of_the_islamic_realm_modifier
1640
+ duration = -1
1641
+ }
1642
+ }
1643
+ }
1644
+
1645
+ mam_cultivate_the_delta = {
1646
+ icon = mission_clear_the_delta
1647
+ required_missions = { mam_alexandrian_trade }
1648
+ position = 9
1649
+ provinces_to_highlight = {
1650
+ if = {
1651
+ limit = { has_dlc = "Mandate of Heaven" }
1652
+ OR = {
1653
+ province_id = 362
1654
+ province_id = 363
1655
+ province_id = 4316
1656
+ province_id = 2316
1657
+ }
1658
+ OR = {
1659
+ NOT = { owned_by = ROOT }
1660
+ NOT = { num_of_times_improved = 4 }
1661
+ is_prosperous = no
1662
+ }
1663
+ }
1664
+ else = {
1665
+ OR = {
1666
+ province_id = 362
1667
+ province_id = 363
1668
+ province_id = 4316
1669
+ province_id = 2316
1670
+ }
1671
+ OR = {
1672
+ NOT = { owned_by = ROOT }
1673
+ NOT = { num_of_times_improved = 4 }
1674
+ }
1675
+ }
1676
+ }
1677
+ trigger = {
1678
+ if = {
1679
+ limit = { has_dlc = "Mandate of Heaven" }
1680
+ 362 = {
1681
+ OR = {
1682
+ is_prosperous = yes
1683
+ num_of_times_improved = 4
1684
+ }
1685
+ owned_by = ROOT
1686
+ }
1687
+ 2316 = {
1688
+ OR = {
1689
+ is_prosperous = yes
1690
+ num_of_times_improved = 4
1691
+ }
1692
+ owned_by = ROOT
1693
+ }
1694
+ 363 = {
1695
+ OR = {
1696
+ is_prosperous = yes
1697
+ num_of_times_improved = 4
1698
+ }
1699
+ owned_by = ROOT
1700
+ }
1701
+ 4316 = {
1702
+ OR = {
1703
+ is_prosperous = yes
1704
+ num_of_times_improved = 4
1705
+ }
1706
+ owned_by = ROOT
1707
+ }
1708
+ 2316 = {
1709
+ OR = {
1710
+ is_prosperous = yes
1711
+ num_of_times_improved = 4
1712
+ }
1713
+ owned_by = ROOT
1714
+ }
1715
+ }
1716
+ else = {
1717
+ 362 = {
1718
+ num_of_times_improved = 4
1719
+ owned_by = ROOT
1720
+ }
1721
+ 2316 = {
1722
+ num_of_times_improved = 4
1723
+ owned_by = ROOT
1724
+ }
1725
+ 363 = {
1726
+ num_of_times_improved = 4
1727
+ owned_by = ROOT
1728
+ }
1729
+ 4316 = {
1730
+ num_of_times_improved = 4
1731
+ owned_by = ROOT
1732
+ }
1733
+ 2316 = {
1734
+ num_of_times_improved = 4
1735
+ owned_by = ROOT
1736
+ }
1737
+ }
1738
+ }
1739
+ effect = {
1740
+ country_event = { id = flavor_mam.102 }
1741
+ custom_tooltip = flavor_mam.102_tt
1742
+ }
1743
+ }
1744
+
1745
+ mam_aden_trade = {
1746
+ icon = mission_the_tamil_trade_guilds
1747
+ required_missions = { mam_father_african_rivers }
1748
+ position = 10
1749
+ provinces_to_highlight = {
1750
+ OR = {
1751
+ province_id = 4346
1752
+ AND = {
1753
+ province_id = 388
1754
+ OR = {
1755
+ country_or_non_sovereign_subject_holds = ROOT
1756
+ has_trade_building_trigger = no
1757
+ NOT = { province_has_center_of_trade_of_level = 2 }
1758
+ }
1759
+ }
1760
+ }
1761
+ }
1762
+ trigger = {
1763
+ 4346 = {
1764
+ trade_share = {
1765
+ country = ROOT
1766
+ share = 51
1767
+ }
1768
+ }
1769
+ 388 = {
1770
+ country_or_non_sovereign_subject_holds = ROOT
1771
+ OR = {
1772
+ has_trade_building_trigger = yes
1773
+ province_has_center_of_trade_of_level = 2
1774
+ }
1775
+ }
1776
+ }
1777
+ effect = {
1778
+ custom_tooltip = mam_upgrade_private_trade_fleets_tt
1779
+ set_country_flag = mam_upgrade_private_trade_fleets_flag
1780
+
1781
+ add_mercantilism = 3
1782
+ }
1783
+ }
1784
+
1785
+ mam_kashifs_egypt = {
1786
+ icon = mission_muslim_administrators
1787
+ required_missions = { mam_khass_al_sultan }
1788
+ position = 11
1789
+ trigger = {
1790
+ OR = {
1791
+ full_idea_group = administrative_ideas
1792
+ adm = 6
1793
+ AND = {
1794
+ crown_land_share = 50
1795
+ has_reform = centralize_empire_reform
1796
+ }
1797
+ }
1798
+ OR = {
1799
+ adm_tech = 12
1800
+ NOT = { average_autonomy_above_min = 5 }
1801
+ }
1802
+ if = {
1803
+ limit = { num_of_subjects = 1 }
1804
+ NOT = {
1805
+ any_subject_country = {
1806
+ liberty_desire = 10
1807
+ }
1808
+ }
1809
+ }
1810
+ is_at_war = no
1811
+ }
1812
+ effect = {
1813
+ country_event = { id = flavor_mam.103 }
1814
+
1815
+ custom_tooltip = flavor_mam.103_tt
1816
+ }
1817
+ }
1818
+
1819
+ mam_center_arab_islamic_world = {
1820
+ icon = mission_restore_faith_in_the_throne
1821
+ required_missions = { mam_dar_al_hadith_turba mam_kashifs_egypt mam_assign_waqf }
1822
+ position = 12
1823
+ provinces_to_highlight = {
1824
+ if = {
1825
+ limit = {
1826
+ MAM = {
1827
+ exists = yes
1828
+ }
1829
+ }
1830
+ AND = {
1831
+ culture_group = turko_semitic
1832
+ NOT = { owned_by = ROOT }
1833
+ }
1834
+ }
1835
+ }
1836
+ trigger = {
1837
+ if = {
1838
+ limit = {
1839
+ tag = EGY
1840
+ has_government_mechanic = egyptian_westernization
1841
+ }
1842
+ has_government_power = {
1843
+ mechanic_type = egyptian_westernization
1844
+ power_type = egyptian_modernization_power
1845
+ value = 90
1846
+ }
1847
+ has_better_tech_than_westerns = yes
1848
+ has_more_institutions_than_westerns = yes
1849
+ OR = {
1850
+ num_accepted_cultures = 8
1851
+ full_idea_group = innovativeness_ideas
1852
+ }
1853
+ }
1854
+ else = {
1855
+ has_unified_culture_group = yes
1856
+ if = {
1857
+ limit = { has_dlc = "Mandate of Heaven" }
1858
+ OR = {
1859
+ in_golden_age = yes
1860
+ has_had_golden_age = yes
1861
+ }
1862
+ }
1863
+ else = { stability = 3 }
1864
+ }
1865
+ }
1866
+ effect = {
1867
+ if = {
1868
+ limit = {
1869
+ tag = EGY
1870
+ has_dlc = "Rights of Man"
1871
+ }
1872
+ custom_tooltip = egy_better_traits_rulers_tt
1873
+ set_country_flag = egypt_better_traits_flag
1874
+ if = {
1875
+ limit = { has_dlc = "Rule Britannia" }
1876
+ change_innovativeness = 5
1877
+ }
1878
+ else = { add_adm_power = 100 add_dip_power = 100 }
1879
+ }
1880
+ else_if = {
1881
+ limit = { has_dlc = "Mandate of Heaven" }
1882
+ custom_tooltip = pol_if_used_ge_rest_else_30_years_extension_tt
1883
+ if = {
1884
+ limit = { has_had_golden_age = yes }
1885
+ reset_golden_age = yes
1886
+ }
1887
+ else_if = {
1888
+ limit = { in_golden_age = yes }
1889
+ extend_golden_age = 600
1890
+ }
1891
+ }
1892
+ else = {
1893
+ change_ruler_stat = {
1894
+ type = adm
1895
+ amount = 2
1896
+ }
1897
+ add_prestige_or_monarch_power = { amount = 25 }
1898
+ }
1899
+ }
1900
+ }
1901
+ }
1902
+
1903
+ mam_missions_5 = {
1904
+ slot = 5
1905
+ generic = no
1906
+ ai = yes
1907
+ potential_on_load = {
1908
+ has_dlc = "King of Kings"
1909
+ }
1910
+ potential = {
1911
+ OR = {
1912
+ tag = EGY
1913
+ tag = MAM
1914
+ }
1915
+ has_dlc = "King of Kings"
1916
+ NOT = { map_setup = map_setup_random }
1917
+ }
1918
+ has_country_shield = yes
1919
+
1920
+ kok_mam_subjugate_beyliks = {
1921
+ icon = mission_non-western_soldiers
1922
+ required_missions = { mam_reincorporate_northern_territories }
1923
+ position = 2
1924
+ provinces_to_highlight = {
1925
+ OR = {
1926
+ area = aleppo_area
1927
+ area = karaman_area
1928
+ area = dulkadir_area
1929
+ province_id = 327
1930
+ province_id = 2302
1931
+ }
1932
+ NOT = {
1933
+ country_or_non_sovereign_subject_holds = ROOT
1934
+ }
1935
+ }
1936
+ trigger = {
1937
+ aleppo_area = {
1938
+ type = all
1939
+ country_or_non_sovereign_subject_holds = ROOT
1940
+ }
1941
+ 327 = {
1942
+ country_or_non_sovereign_subject_holds = ROOT
1943
+ }
1944
+ 2302 = {
1945
+ country_or_non_sovereign_subject_holds = ROOT
1946
+ }
1947
+ karaman_area = {
1948
+ type = all
1949
+ country_or_non_sovereign_subject_holds = ROOT
1950
+ }
1951
+ dulkadir_area = {
1952
+ type = all
1953
+ country_or_non_sovereign_subject_holds = ROOT
1954
+ }
1955
+ }
1956
+ effect = {
1957
+ if = {
1958
+ limit = {
1959
+ has_government_mechanic = mamluk_mechanic
1960
+ has_dlc = "Cradle of Civilization"
1961
+ }
1962
+ custom_tooltip = mam_boost_recruit_from_culture_lands_tt
1963
+ set_country_flag = mam_boost_recruit_from_culture_lands_flag
1964
+ }
1965
+ else = {
1966
+ add_country_modifier = {
1967
+ name = "beyliks_subjugated"
1968
+ duration = 7300
1969
+ }
1970
+ }
1971
+
1972
+ erzurum_area = {
1973
+ limit = {
1974
+ NOT = { is_permanent_claim = ROOT }
1975
+ NOT = { is_core = ROOT }
1976
+ }
1977
+ add_permanent_claim = ROOT
1978
+ }
1979
+ armenia_area = {
1980
+ limit = {
1981
+ NOT = { is_permanent_claim = ROOT }
1982
+ NOT = { is_core = ROOT }
1983
+ }
1984
+ add_permanent_claim = ROOT
1985
+ }
1986
+ change_ruler_stat = {
1987
+ type = adm
1988
+ amount = 1
1989
+ }
1990
+ }
1991
+ }
1992
+
1993
+ mam_tunis = {
1994
+ icon = mission_conquer_tunisia
1995
+ required_missions = { }
1996
+ position = 4
1997
+ provinces_to_highlight = {
1998
+ OR = {
1999
+ area = djerba_area
2000
+ area = tripolitania_area
2001
+ area = tunisia_area
2002
+ }
2003
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2004
+ }
2005
+ trigger = {
2006
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2007
+ OR = {
2008
+ area = djerba_area
2009
+ area = tripolitania_area
2010
+ area = tunisia_area
2011
+ }
2012
+ value = 6
2013
+ }
2014
+ 341 = { country_or_non_sovereign_subject_holds = ROOT }
2015
+ 4566 = { country_or_non_sovereign_subject_holds = ROOT }
2016
+ }
2017
+ effect = {
2018
+ maghreb_region = {
2019
+ limit = {
2020
+ NOT = { is_permanent_claim = ROOT }
2021
+ NOT = { is_core = ROOT }
2022
+ }
2023
+ add_permanent_claim = ROOT
2024
+ }
2025
+ if = {
2026
+ limit = {
2027
+ has_dlc = "Leviathan"
2028
+ }
2029
+ 4566 = {
2030
+ add_great_project_tier = {
2031
+ type = holy_city_kairouan
2032
+ tier = 1
2033
+ }
2034
+ }
2035
+ }
2036
+ else = {
2037
+ 341 = {
2038
+ add_local_autonomy = -25
2039
+ add_nationalism = -10
2040
+ add_base_production = 2
2041
+ add_base_manpower = 2
2042
+ }
2043
+ }
2044
+ }
2045
+ }
2046
+
2047
+ mam_morocco = {
2048
+ icon = mission_new_world_power
2049
+ required_missions = { mam_tunis }
2050
+ position = 6
2051
+ provinces_to_highlight = {
2052
+ OR = {
2053
+ area = marrekesh_area
2054
+ area = western_morocco_area
2055
+ area = northern_morocco_area
2056
+ area = southern_morocco_area
2057
+ }
2058
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2059
+ }
2060
+ trigger = {
2061
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2062
+ OR = {
2063
+ area = marrekesh_area
2064
+ area = western_morocco_area
2065
+ area = northern_morocco_area
2066
+ area = southern_morocco_area
2067
+ }
2068
+ value = 12
2069
+ }
2070
+ 343 = { country_or_non_sovereign_subject_holds = ROOT }
2071
+
2072
+ }
2073
+ effect = {
2074
+ country_event = { id = flavor_mam.113 }
2075
+ custom_tooltip = flavor_mam.113_tt
2076
+ }
2077
+ }
2078
+
2079
+ mam_city_thousand_minarets = {
2080
+ icon = mam_city_thousand_minarets
2081
+ required_missions = { }
2082
+ position = 8
2083
+ provinces_to_highlight = {
2084
+ province_id = 361
2085
+ }
2086
+ trigger = {
2087
+ 361 = {
2088
+ owned_by = ROOT
2089
+ OR = {
2090
+ num_of_times_improved = 8
2091
+ num_of_buildings_in_province = 3
2092
+ }
2093
+ }
2094
+ }
2095
+ effect = {
2096
+ if = {
2097
+ limit = {
2098
+ 361 = {
2099
+ has_province_modifier = public_works_of_cairo
2100
+ }
2101
+ }
2102
+ 361 = { add_center_of_trade_level = 1 }
2103
+ }
2104
+ else = {
2105
+ country_event = { id = flavor_mam.2 }
2106
+ custom_tooltip = flavor_mam.2_tt
2107
+ }
2108
+ }
2109
+ }
2110
+
2111
+ mam_khass_al_sultan = {
2112
+ icon = mission_mal_riches_of_trade
2113
+ required_missions = { mam_city_thousand_minarets }
2114
+ position = 10
2115
+ provinces_to_highlight = {
2116
+ OR = {
2117
+ province_id = 362
2118
+ province_id = 363
2119
+ province_id = 2316
2120
+ province_id = 4316
2121
+ }
2122
+ OR = {
2123
+ has_production_building_trigger = no
2124
+ NOT = { owned_by = ROOT }
2125
+ }
2126
+ }
2127
+ trigger = {
2128
+ OR = {
2129
+ crown_land_share = 40
2130
+ has_reform = diwan_al_khass_reform
2131
+ }
2132
+ 362 = {
2133
+ owned_by = ROOT
2134
+ has_production_building_trigger = yes
2135
+ }
2136
+ 363 = {
2137
+ owned_by = ROOT
2138
+ has_production_building_trigger = yes
2139
+ }
2140
+ 2316 = {
2141
+ owned_by = ROOT
2142
+ has_production_building_trigger = yes
2143
+ }
2144
+ 4316 = {
2145
+ owned_by = ROOT
2146
+ has_production_building_trigger = yes
2147
+ }
2148
+ }
2149
+ effect = {
2150
+ custom_tooltip = add_5_crown_land_share
2151
+ hidden_effect = {
2152
+ change_estate_land_share = {
2153
+ estate = all
2154
+ share = -5
2155
+ }
2156
+ }
2157
+ custom_tooltip = enable_export_grain_dip_action_tt
2158
+ set_country_flag = enable_export_grain_dip_action_flag
2159
+ }
2160
+ }
2161
+
2162
+ mam_assign_waqf = {
2163
+ icon = mission_hands_praying
2164
+ required_missions = { mam_khass_al_sultan }
2165
+ position = 11
2166
+ trigger = {
2167
+ years_of_income = 2
2168
+ stability = 2
2169
+ OR = {
2170
+ full_idea_group = humanist_ideas
2171
+ full_idea_group = religious_ideas
2172
+ has_estate_privilege = estate_church_sponsor_waqf_payments
2173
+ }
2174
+ }
2175
+ effect = {
2176
+ country_event = { id = flavor_mam.104 }
2177
+ custom_tooltip = flavor_mam.104_tt
2178
+ }
2179
+ }
2180
+ }
missions/KoK_Persia_Missions.txt ADDED
@@ -0,0 +1,3832 @@
1
+ #Conquest + Religious Branches
2
+ kok_persia_conquest_mission_slot_1 = {
3
+ slot = 1
4
+ generic = no
5
+ ai = yes
6
+ potential_on_load = {
7
+ has_dlc = "King of Kings"
8
+ }
9
+ potential = {
10
+ NOT = { map_setup = map_setup_random }
11
+ has_dlc = "King of Kings"
12
+ or = {
13
+ tag = PER
14
+ tag = ERS
15
+ }
16
+ }
17
+ has_country_shield = yes
18
+ per_consolidate_persia = {
19
+ icon = mission_into_persia_1
20
+ required_missions = { }
21
+ position = 1
22
+ provinces_to_highlight = {
23
+ region = persia_region
24
+ NOT = { owned_by = ROOT }
25
+ }
26
+ trigger = {
27
+ num_of_owned_provinces_with = {
28
+ region = persia_region
29
+ value = 35
30
+ }
31
+ }
32
+ effect = {
33
+ country_event_with_effect_insight = {
34
+ id = flavor_per.1
35
+ effect = "custom_tooltip = per_consolidate_persia_tt"
36
+ }
37
+ add_permanent_claim_multi_provinces = { target = armenia_area }
38
+ add_permanent_claim_multi_provinces = { target = shirvan_area }
39
+ add_permanent_claim_multi_provinces = { target = samtskhe_area }
40
+ add_permanent_claim_multi_provinces = { target = imereti_area }
41
+ add_permanent_claim_multi_provinces = { target = kartli_kakheti_area }
42
+ }
43
+ }
44
+ per_caucasian_conquest = {
45
+ icon = mission_the_caucasus_tur
46
+ required_missions = { per_consolidate_persia }
47
+ position = 2
48
+ provinces_to_highlight = {
49
+ region = caucasia_region
50
+ NOT = { owned_by = root }
51
+ }
52
+ trigger = {
53
+ num_of_owned_provinces_with = {
54
+ region = caucasia_region
55
+ value = 15
56
+ }
57
+ }
58
+ effect = {
59
+ add_permanent_claim_province = { province = 2307 }
60
+ add_permanent_claim_province = { province = 2306 }
61
+ add_permanent_claim_multi_provinces = { target = erzurum_area }
62
+ add_permanent_claim_multi_provinces = { target = kastamonu_area }
63
+ add_permanent_claim_multi_provinces = { target = rum_area }
64
+ add_permanent_claim_multi_provinces = { target = dulkadir_area }
65
+ country_event_with_effect_insight = {
66
+ id = flavor_per.40
67
+ effect = "
68
+ add_accepted_culture_or_dip_power = {
69
+ culture = georgian
70
+ free = yes
71
+ new_line = yes
72
+ }
73
+ add_accepted_culture_or_dip_power = {
74
+ culture = armenian
75
+ free = yes
76
+ }
77
+ "
78
+ }
79
+ }
80
+ }
81
+ per_the_seljuk_successors = {
82
+ icon = per_the_seljuk_successors
83
+ required_missions = { per_caucasian_conquest }
84
+ position = 3
85
+ provinces_to_highlight = {
86
+ OR = {
87
+ province_id = 2306
88
+ province_id = 2307
89
+ area = erzurum_area
90
+ area = kastamonu_area
91
+ area = rum_area
92
+ area = dulkadir_area
93
+ }
94
+ NOT = { country_or_non_sovereign_subject_holds = root }
95
+ }
96
+ trigger = {
97
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
98
+ OR = {
99
+ province_id = 2306
100
+ province_id = 2307
101
+ area = erzurum_area
102
+ area = kastamonu_area
103
+ area = rum_area
104
+ area = dulkadir_area
105
+ }
106
+ value = 12
107
+ }
108
+ }
109
+ effect = {
110
+ add_permanent_claim_multi_provinces = { target = anatolia_region }
111
+ country_event_with_effect_insight = {
112
+ id = flavor_per.39
113
+ effect = "
114
+ add_yearly_manpower = 2
115
+ add_accepted_culture_or_dip_power = {
116
+ culture = turkish
117
+ free = yes
118
+ }
119
+ "
120
+ }
121
+ }
122
+ }
123
+ per_end_the_turkish_threat = {
124
+ icon = mission_janissaries
125
+ required_missions = { per_the_seljuk_successors }
126
+ position = 4
127
+ provinces_to_highlight = {
128
+ region = anatolia_region
129
+ is_island = no
130
+ owner = {
131
+ primary_culture = turkish
132
+ NOT = { is_subject_of = root }
133
+ }
134
+ NOT = { country_or_non_sovereign_subject_holds = root }
135
+ }
136
+ trigger = {
137
+ custom_trigger_tooltip = {
138
+ tooltip = per_end_the_turkish_threat_ct
139
+ NOT = {
140
+ anatolia_region = {
141
+ owner = {
142
+ primary_culture = turkish
143
+ NOT = { is_subject_of = root }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ effect = {
150
+ add_permanent_claim_multi_provinces = { target = northern_greece_area }
151
+ add_permanent_claim_multi_provinces = { target = morea_area }
152
+ add_permanent_claim_multi_provinces = { target = thrace_area }
153
+ add_permanent_claim_multi_provinces = { target = macedonia_area }
154
+ if = {
155
+ limit = {
156
+ OR = {
157
+ has_dlc = "Cradle of Civilization"
158
+ has_dlc = "Domination"
159
+ }
160
+ }
161
+ capital_scope = {
162
+ create_units_of_type_in_province = {
163
+ custom_tooltip = per_end_the_turkish_threat_at
164
+ amount = 10
165
+ unit_type = janissary_infantry
166
+ who = root
167
+ }
168
+ }
169
+ }
170
+ else = {
171
+ add_manpower = 10
172
+ }
173
+ }
174
+ }
175
+ per_claim_constantinople = {
176
+ icon = mission_constantinople
177
+ required_missions = { per_end_the_turkish_threat }
178
+ position = 5
179
+ provinces_to_highlight = {
180
+ OR = {
181
+ AND = {
182
+ OR = {
183
+ area = northern_greece_area
184
+ area = morea_area
185
+ area = thrace_area
186
+ area = macedonia_area
187
+ }
188
+ NOT = { country_or_non_sovereign_subject_holds = root }
189
+ }
190
+ AND = {
191
+ province_id = 151
192
+ OR = {
193
+ NOT = { owned_by = root }
194
+ NOT = { is_core = root }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ trigger = {
200
+ owns_core_province = 151
201
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
202
+ OR = {
203
+ area = northern_greece_area
204
+ area = morea_area
205
+ area = thrace_area
206
+ area = macedonia_area
207
+ }
208
+ value = 15
209
+ }
210
+ }
211
+ effect = {
212
+ add_claim_multi_provinces = { target = balkan_region }
213
+ add_power_projection_mission = { amount = 50 }
214
+ country_event_with_effect_insight = {
215
+ id = flavor_per.38
216
+ effect = "per_claim_constantinople_effect = yes"
217
+ }
218
+ }
219
+ }
220
+ }
221
+ #########################################
222
+ # Religious Path Finishers for Conquest #
223
+ #########################################
224
+ kok_persia_mission_muslim_slot_1 = {
225
+ slot = 1
226
+ generic = no
227
+ ai = yes
228
+ potential_on_load = {
229
+ has_dlc = "King of Kings"
230
+ }
231
+ potential = {
232
+ NOT = { map_setup = map_setup_random }
233
+ has_dlc = "King of Kings"
234
+ or = {
235
+ tag = PER
236
+ tag = ERS
237
+ }
238
+ OR = {
239
+ has_country_flag = per_shia_missions
240
+ has_country_flag = per_sunni_missions
241
+ }
242
+ }
243
+ has_country_shield = yes
244
+ per_indomitable_lion = {
245
+ icon = mission_persian_lion
246
+ required_missions = {
247
+ per_claim_constantinople
248
+ per_subjugate_egypt
249
+ per_our_religious_direction
250
+ }
251
+ position = 6
252
+ provinces_to_highlight = {
253
+ OR = {
254
+ AND = {
255
+ superregion = india_superregion
256
+ NOT = { root = { num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = { superregion = india_superregion value = 100 } } }
257
+ }
258
+ AND = {
259
+ superregion = near_east_superregion
260
+ NOT = { root = { num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = { superregion = near_east_superregion value = 100 } } }
261
+ }
262
+ AND = {
263
+ OR = {
264
+ superregion = eastern_europe_superregion
265
+ superregion = europe_superregion
266
+ }
267
+ NOT = {
268
+ root = {
269
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
270
+ OR = {
271
+ superregion = eastern_europe_superregion
272
+ superregion = europe_superregion
273
+ }
274
+ value = 100
275
+ }
276
+ }
277
+ }
278
+ }
279
+ superregion = persia_superregion
280
+ }
281
+ NOT = { country_or_non_sovereign_subject_holds = root }
282
+ }
283
+ trigger = {
284
+ not_in_mission_preview_mode = { key = PER }
285
+ persia_superregion = {
286
+ country_or_non_sovereign_subject_holds = root
287
+ type = all
288
+ }
289
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
290
+ superregion = india_superregion
291
+ value = 100
292
+ }
293
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
294
+ superregion = near_east_superregion
295
+ value = 125
296
+ }
297
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
298
+ OR = {
299
+ superregion = eastern_europe_superregion
300
+ superregion = europe_superregion
301
+ }
302
+ value = 50
303
+ }
304
+ }
305
+ effect = {
306
+ country_event_with_effect_insight = {
307
+ id = flavor_per.37
308
+ effect = "
309
+ add_prestige_or_monarch_power = { amount = 100 }
310
+ add_permanent_power_projection = {
311
+ type = 25_permanent_power_projection
312
+ amount = 25
313
+ }
314
+ "
315
+ }
316
+
317
+ }
318
+ }
319
+ }
320
+ kok_persia_mission_zoroastrian_slot_1 = {
321
+ slot = 1
322
+ generic = no
323
+ ai = yes
324
+ potential_on_load = {
325
+ has_dlc = "King of Kings"
326
+ }
327
+ potential = {
328
+ NOT = { map_setup = map_setup_random }
329
+ has_dlc = "King of Kings"
330
+ or = {
331
+ tag = PER
332
+ tag = ERS
333
+ }
334
+ has_country_flag = per_zoroastrian_missions
335
+ }
336
+ has_country_shield = yes
337
+ per_a_new_eranshahr = {
338
+ icon = per_a_new_eranshahr
339
+ required_missions = {
340
+ per_claim_constantinople
341
+ per_subjugate_egypt
342
+ per_our_religious_direction
343
+ }
344
+ position = 6
345
+ provinces_to_highlight = {
346
+ OR = {
347
+ AND = {
348
+ superregion = india_superregion
349
+ NOT = { root = { num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = { superregion = india_superregion value = 100 } } }
350
+ }
351
+ AND = {
352
+ superregion = near_east_superregion
353
+ NOT = { root = { num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = { superregion = near_east_superregion value = 100 } } }
354
+ }
355
+ AND = {
356
+ OR = {
357
+ superregion = eastern_europe_superregion
358
+ superregion = europe_superregion
359
+ }
360
+ NOT = {
361
+ root = {
362
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
363
+ OR = {
364
+ superregion = eastern_europe_superregion
365
+ superregion = europe_superregion
366
+ }
367
+ value = 100
368
+ }
369
+ }
370
+ }
371
+ }
372
+ superregion = persia_superregion
373
+ }
374
+ NOT = { country_or_non_sovereign_subject_holds = root }
375
+ }
376
+ trigger = {
377
+ not_in_mission_preview_mode = { key = PER }
378
+ persia_superregion = {
379
+ country_or_non_sovereign_subject_holds = root
380
+ type = all
381
+ }
382
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
383
+ superregion = india_superregion
384
+ value = 100
385
+ }
386
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
387
+ superregion = near_east_superregion
388
+ value = 125
389
+ }
390
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
391
+ OR = {
392
+ superregion = eastern_europe_superregion
393
+ superregion = europe_superregion
394
+ }
395
+ value = 50
396
+ }
397
+ }
398
+ effect = {
399
+ country_event_with_effect_insight = {
400
+ id = flavor_per.47
401
+ effect = "
402
+ add_prestige_or_monarch_power = { amount = 100 }
403
+ add_permanent_power_projection = {
404
+ type = 25_permanent_power_projection
405
+ amount = 25
406
+ }
407
+ "
408
+ }
409
+ }
410
+ }
411
+ }
412
+ kok_persia_mission_branching_slot_1 = {
413
+ slot = 1
414
+ generic = no
415
+ ai = yes
416
+ potential_on_load = { has_dlc = "King of Kings" }
417
+ potential = {
418
+ NOT = { map_setup = map_setup_random }
419
+ has_dlc = "King of Kings"
420
+ or = {
421
+ tag = PER
422
+ tag = ERS
423
+ }
424
+ NOT = {
425
+ OR = {
426
+ has_country_flag = per_shia_missions
427
+ has_country_flag = per_sunni_missions
428
+ has_country_flag = per_zoroastrian_missions
429
+ }
430
+ }
431
+ }
432
+ has_country_shield = yes
433
+ per_branching_1_6 = {
434
+ icon = mission_unknown_mission
435
+ required_missions = { per_claim_constantinople per_subjugate_egypt per_our_religious_direction }
436
+ position = 6
437
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
438
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
439
+ }
440
+ }
441
+ #########################################
442
+ kok_persia_conquest_mission_slot_2 = {
443
+ slot = 2
444
+ generic = no
445
+ ai = yes
446
+ potential_on_load = {
447
+ has_dlc = "King of Kings"
448
+ }
449
+ potential = {
450
+ NOT = { map_setup = map_setup_random }
451
+ has_dlc = "King of Kings"
452
+ or = {
453
+ tag = PER
454
+ tag = ERS
455
+ }
456
+ }
457
+ has_country_shield = yes
458
+ per_butcher_black_sheep = {
459
+ icon = per_butcher_black_sheep
460
+ required_missions = { per_consolidate_persia }
461
+ position = 2
462
+ provinces_to_highlight = {
463
+ OR = {
464
+ region = persia_region
465
+ region = caucasia_region
466
+ }
467
+ owned_by = QAR
468
+ }
469
+ trigger = {
470
+ OR = {
471
+ AND = {
472
+ NOT = { persia_region = { owned_by = QAR } }
473
+ NOT = { caucasia_region = { owned_by = QAR } }
474
+ }
475
+ AKK = { is_subject_of = root }
476
+ alliance_with = QAR
477
+ }
478
+ }
479
+ effect = {
480
+ custom_tooltip = per_butcher_black_sheep_ct
481
+ hidden_effect = {
482
+ anatolia_region = { limit = { NOT = { is_core = root } NOT = { is_permanent_claim = root } culture = kurdish } add_permanent_claim = root }
483
+ mashriq_region = { limit = { NOT = { is_core = root } NOT = { is_permanent_claim = root } culture = kurdish } add_permanent_claim = root }
484
+ persia_region = { limit = { NOT = { is_core = root } NOT = { is_permanent_claim = root } culture = kurdish } add_permanent_claim = root }
485
+ }
486
+ simple_dynamic_effect = {
487
+ first_custom_tooltip = per_butcher_black_sheep_at
488
+ first_limit = "
489
+ OR = {
490
+ AND = {
491
+ NOT = { persia_region = { owned_by = QAR } }
492
+ NOT = { caucasia_region = { owned_by = QAR } }
493
+ }
494
+ QAR = { is_subject_of = root }
495
+ }
496
+ "
497
+ first_effect = "add_adm_power = 100"
498
+ second_custom_tooltip = per_butcher_black_sheep_bt
499
+ second_limit = "alliance_with = QAR"
500
+ second_effect = "add_dip_power = 100"
501
+ }
502
+ }
503
+ }
504
+ per_protect_the_west_iranian = {
505
+ icon = per_protect_the_west_iranian
506
+ required_missions = { per_butcher_black_sheep }
507
+ position = 3
508
+ provinces_to_highlight = {
509
+ culture = kurdish
510
+ OR = {
511
+ region = persia_region
512
+ region = anatolia_region
513
+ region = mashriq_region
514
+ }
515
+ NOT = { country_or_non_sovereign_subject_holds = root }
516
+ }
517
+ trigger = {
518
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
519
+ culture = kurdish
520
+ OR = {
521
+ region = persia_region
522
+ region = anatolia_region
523
+ region = mashriq_region
524
+ }
525
+ value = 10
526
+ }
527
+ }
528
+ effect = {
529
+ add_permanent_claim_multi_provinces = { target = mashriq_region }
530
+ custom_tooltip = per_protect_the_west_iranian_tt
531
+ tooltip = {
532
+ add_nationalism = -20
533
+ }
534
+ hidden_effect = {
535
+ every_owned_province = {
536
+ limit = {
537
+ OR = {
538
+ region = anatolia_region
539
+ region = mashriq_region
540
+ region = persia_region
541
+ }
542
+ culture_group = root
543
+ }
544
+ add_nationalism = -20
545
+ }
546
+ }
547
+ }
548
+ }
549
+ per_unite_mashriq = {
550
+ icon = mission_cradle_of_civilization
551
+ required_missions = { per_protect_the_west_iranian }
552
+ position = 4
553
+ provinces_to_highlight = {
554
+ region = mashriq_region
555
+ NOT = { country_or_non_sovereign_subject_holds = root }
556
+ }
557
+ trigger = {
558
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
559
+ region = mashriq_region
560
+ value = 16
561
+ }
562
+ }
563
+ effect = {
564
+ add_accepted_culture_or_dip_power = {
565
+ culture = al_iraqiya_arabic
566
+ free = yes
567
+ new_line = yes
568
+ }
569
+ add_accepted_culture_or_dip_power = {
570
+ culture = al_suryah_arabic
571
+ free = yes
572
+ }
573
+ custom_tooltip = empty_line_tt
574
+ add_permanent_claim_multi_provinces = { target = egypt_region }
575
+ }
576
+ }
577
+ per_subjugate_egypt = {
578
+ icon = mission_egyptian_mamluk_soldier
579
+ required_missions = { per_unite_mashriq }
580
+ position = 5
581
+ provinces_to_highlight = {
582
+ region = egypt_region
583
+ NOT = { country_or_non_sovereign_subject_holds = root }
584
+ }
585
+ trigger = {
586
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
587
+ region = egypt_region
588
+ value = 20
589
+ }
590
+ }
591
+ effect = {
592
+ add_claim_multi_provinces = { target = arabia_region }
593
+ country_event_with_effect_insight = {
594
+ id = flavor_per.48
595
+ effect = "
596
+ unlock_estate_privilege = {
597
+ estate_privilege = estate_nobles_mamlukian_administration
598
+ modifier_tooltip = estate_nobles_mamlukian_administration_tooltip
599
+ }
600
+ unlock_estate_privilege = { estate_privilege = estate_qizilbash_mamlukian_administration }
601
+ unlock_estate_privilege = { estate_privilege = estate_ghulams_mamlukian_administration }
602
+ "
603
+ }
604
+ }
605
+ }
606
+ }
607
+ ############################################################################
608
+ # Origins and Legacy missions depndent on what nation you form Persia with #
609
+ ############################################################################
610
+ kok_persia_mission_origins_slot_ardabil = {
611
+ slot = 3
612
+ generic = no
613
+ ai = yes
614
+ potential_on_load = {
615
+ has_dlc = "King of Kings"
616
+ }
617
+ potential = {
618
+ NOT = { map_setup = map_setup_random }
619
+ has_dlc = "King of Kings"
620
+ or = {
621
+ tag = PER
622
+ tag = ERS
623
+ }
624
+ was_tag = ARL
625
+ NOT = { was_tag = TIM }
626
+ NOT = { was_tag = KHO }
627
+ NOT = { was_tag = FRS }
628
+ NOT = { was_tag = AFG }
629
+ NOT = { was_tag = TRS }
630
+ NOT = { was_tag = SIS }
631
+ NOT = { was_tag = QOM }
632
+ NOT = { has_country_flag = enthroned_a_timurid_prince }
633
+ NOT = { primary_culture = mazandarani }
634
+ NOT = { was_tag = AKK }
635
+ NOT = { was_tag = QAR }
636
+ }
637
+ has_country_shield = yes
638
+ per_arl_expand_the_safavid_order = {
639
+ icon = per_arl_expand_the_safavid_order
640
+ required_missions = { }
641
+ position = 1
642
+ provinces_to_highlight = {
643
+ if = {
644
+ limit = { has_dlc = "Golden Century" }
645
+ has_holy_order_trigger = no
646
+ }
647
+ else = {
648
+ OR = {
649
+ NOT = { religion = root }
650
+ NOT = { base_manpower = 3 }
651
+ }
652
+ }
653
+ owned_by = root
654
+ }
655
+ trigger = {
656
+ if = {
657
+ limit = {
658
+ has_dlc = "Golden Century"
659
+ religion_group = muslim
660
+ }
661
+ num_of_owned_provinces_with = {
662
+ has_holy_order_trigger = yes
663
+ value = 25
664
+ }
665
+ }
666
+ else = {
667
+ num_of_owned_provinces_with = {
668
+ base_manpower = 3
669
+ religion = root
670
+ value = 25
671
+ }
672
+ }
673
+ }
674
+ effect = {
675
+ add_estate_loyalty = {
676
+ estate = estate_church
677
+ loyalty = 15
678
+ }
679
+ auto_complete_estate_agenda = {
680
+ estate = estate_church
681
+ }
682
+ add_government_power = {
683
+ mechanic_type = persian_influence_mechanic
684
+ power_type = persian_influence
685
+ value = 30
686
+ }
687
+ }
688
+ }
689
+ per_arl_legacy_of_the_safavid = {
690
+ icon = mission_persianate_empire
691
+ required_missions = { per_arl_expand_the_safavid_order }
692
+ position = 2
693
+ provinces_to_highlight = {
694
+ }
695
+ trigger = {
696
+ OR = {
697
+ num_of_forced_converted_countries = { amount = 10 }
698
+ num_of_converted_provinces = { amount = 50 }
699
+ }
700
+ crown_land_share = estate_church
701
+ reform_level = 4
702
+ }
703
+ effect = {
704
+ country_event_with_effect_insight = {
705
+ id = flavor_per.21
706
+ effect = "
707
+ unlock_government_reform = {
708
+ government_reform = legacy_of_the_safavid_reform
709
+ }
710
+ add_government_reform = legacy_of_the_safavid_reform
711
+ "
712
+ }
713
+ }
714
+ }
715
+ }
716
+ kok_persia_mission_origins_slot_timurid = {
717
+ slot = 3
718
+ generic = no
719
+ ai = yes
720
+ potential_on_load = {
721
+ has_dlc = "King of Kings"
722
+ }
723
+ potential = {
724
+ NOT = { map_setup = map_setup_random }
725
+ has_dlc = "King of Kings"
726
+ or = {
727
+ tag = PER
728
+ tag = ERS
729
+ }
730
+ NOT = { was_tag = ARL }
731
+ NOT = { primary_culture = mazandarani }
732
+ NOT = { was_tag = AKK }
733
+ NOT = { was_tag = QAR }
734
+ OR = {
735
+ was_tag = TIM
736
+ was_tag = KHO
737
+ was_tag = FRS
738
+ was_tag = AFG
739
+ was_tag = TRS
740
+ was_tag = SIS
741
+ was_tag = QOM
742
+ has_country_flag = enthroned_a_timurid_prince
743
+ }
744
+ }
745
+ has_country_shield = yes
746
+ per_tim_patronage_of_the_arts = {
747
+ icon = mission_persianate_empire
748
+ required_missions = { }
749
+ position = 1
750
+ provinces_to_highlight = {
751
+ is_capital_of = root
752
+ OR = {
753
+ NOT = { num_of_times_improved = 10 }
754
+ has_tax_building_trigger = no
755
+ has_trade_building_trigger = no
756
+ if = {
757
+ limit = { NOT = { trade_goods = gold } }
758
+ has_production_building_trigger = no
759
+ }
760
+ }
761
+ }
762
+ trigger = {
763
+ capital_scope = {
764
+ num_of_times_improved = 10
765
+ has_tax_building_trigger = yes
766
+ has_trade_building_trigger = yes
767
+ if = {
768
+ limit = { NOT = { trade_goods = gold } }
769
+ has_production_building_trigger = yes
770
+ }
771
+ }
772
+ }
773
+ effect = {
774
+ add_prestige_or_monarch_power = {
775
+ amount = 20
776
+ }
777
+ define_advisor = {
778
+ type = artist
779
+ skill = 3
780
+ cost_multiplier = 0.25
781
+ }
782
+ add_government_power = {
783
+ mechanic_type = persian_influence_mechanic
784
+ power_type = persian_influence
785
+ value = 30
786
+ }
787
+ }
788
+ }
789
+ per_tim_legacy_of_timur = {
790
+ icon = per_tim_legacy_of_timur
791
+ required_missions = { per_tim_patronage_of_the_arts }
792
+ position = 2
793
+ provinces_to_highlight = {
794
+ has_discovered = root
795
+ NOT = { owned_by = root }
796
+ }
797
+ trigger = {
798
+ reform_level = 2
799
+ num_of_cities = 200
800
+ }
801
+ effect = {
802
+ country_event_with_effect_insight = {
803
+ id = flavor_per.20
804
+ effect = "
805
+ if = {
806
+ limit = { NOT = { government = monarchy } }
807
+ change_government = monarchy
808
+ }
809
+ unlock_government_reform = {
810
+ government_reform = legacy_of_timur_reform
811
+ }
812
+ add_government_reform = legacy_of_timur_reform
813
+ "
814
+ }
815
+ }
816
+ }
817
+ }
818
+ kok_persia_mission_origins_slot_mazandarani = {
819
+ slot = 3
820
+ generic = no
821
+ ai = yes
822
+ potential_on_load = {
823
+ has_dlc = "King of Kings"
824
+ }
825
+ potential = {
826
+ NOT = { map_setup = map_setup_random }
827
+ has_dlc = "King of Kings"
828
+ or = {
829
+ tag = PER
830
+ tag = ERS
831
+ }
832
+ NOT = { was_tag = ARL }
833
+ NOT = { was_tag = TIM }
834
+ NOT = { was_tag = KHO }
835
+ NOT = { was_tag = FRS }
836
+ NOT = { was_tag = AFG }
837
+ NOT = { was_tag = TRS }
838
+ NOT = { was_tag = SIS }
839
+ NOT = { was_tag = QOM }
840
+ NOT = { has_country_flag = enthroned_a_timurid_prince }
841
+ primary_culture = mazandarani
842
+ NOT = { was_tag = AKK }
843
+ NOT = { was_tag = QAR }
844
+ }
845
+ has_country_shield = yes
846
+ per_tab_ziyarids_successor = {
847
+ icon = per_tab_ziyarids_successor
848
+ required_missions = { }
849
+ position = 1
850
+ provinces_to_highlight = {
851
+ region = persia_region
852
+ owned_by = root
853
+ OR = {
854
+ local_autonomy = 1
855
+ devastation = 1
856
+ NOT = { num_of_times_improved = 1 }
857
+ }
858
+ }
859
+ trigger = {
860
+ num_of_owned_provinces_with = {
861
+ region = persia_region
862
+ NOT = { local_autonomy = 1 }
863
+ NOT = { devastation = 1 }
864
+ num_of_times_improved = 1
865
+ value = 30
866
+ }
867
+ }
868
+ effect = {
869
+ change_ruler_stat = {
870
+ type = adm
871
+ amount = 3
872
+ }
873
+ add_government_power = {
874
+ mechanic_type = persian_influence_mechanic
875
+ power_type = persian_influence
876
+ value = 30
877
+ }
878
+ }
879
+ }
880
+ per_tab_legacy_of_eranshahr = {
881
+ icon = per_tab_legacy_of_eranshahr
882
+ required_missions = { per_tab_ziyarids_successor }
883
+ position = 2
884
+ provinces_to_highlight = {
885
+ OR = {
886
+ region = khorasan_region
887
+ region = persia_region
888
+ region = caucasia_region
889
+ region = mashriq_region
890
+ region = anatolia_region
891
+ }
892
+ NOT = { owned_by = root }
893
+ }
894
+ trigger = {
895
+ religious_unity = 1
896
+ reform_level = 6
897
+ num_of_owned_provinces_with = {
898
+ OR = {
899
+ region = khorasan_region
900
+ region = persia_region
901
+ region = caucasia_region
902
+ region = mashriq_region
903
+ region = anatolia_region
904
+ }
905
+ value = 140
906
+ }
907
+ }
908
+ effect = {
909
+ if = {
910
+ limit = { religion_group = zoroastrian_group }
911
+ country_event_with_effect_insight = {
912
+ id = flavor_per.22
913
+ effect = "
914
+ if = {
915
+ limit = { NOT = { government = monarchy } }
916
+ change_government = monarchy
917
+ }
918
+ unlock_government_reform = {
919
+ government_reform = legacy_of_eranshahr_reform
920
+ }
921
+ add_government_reform = legacy_of_eranshahr_reform
922
+ if = {
923
+ limit = { has_dlc = \"Cradle of Civilization\" }
924
+ set_trade_power_requirement_of_propogate_religion = { value = 20 }
925
+ }
926
+ else = { add_adm_power = 50 add_dip_power = 50 add_mil_power = 50 }
927
+ "
928
+ }
929
+ }
930
+ else = {
931
+ country_event_with_effect_insight = {
932
+ id = flavor_per.22
933
+ effect = "
934
+ if = {
935
+ limit = { NOT = { government = monarchy } }
936
+ change_government = monarchy
937
+ }
938
+ unlock_government_reform = {
939
+ government_reform = legacy_of_eranshahr_reform
940
+ }
941
+ add_government_reform = legacy_of_eranshahr_reform
942
+ "
943
+ }
944
+ }
945
+ }
946
+ }
947
+ }
948
+ kok_persia_mission_origins_slot_qoyunlu = {
949
+ slot = 3
950
+ generic = no
951
+ ai = yes
952
+ potential_on_load = {
953
+ has_dlc = "King of Kings"
954
+ }
955
+ potential = {
956
+ NOT = { map_setup = map_setup_random }
957
+ has_dlc = "King of Kings"
958
+ or = {
959
+ tag = PER
960
+ tag = ERS
961
+ }
962
+ NOT = { was_tag = ARL }
963
+ NOT = { was_tag = TIM }
964
+ NOT = { was_tag = KHO }
965
+ NOT = { was_tag = FRS }
966
+ NOT = { was_tag = AFG }
967
+ NOT = { was_tag = TRS }
968
+ NOT = { was_tag = SIS }
969
+ NOT = { was_tag = QOM }
970
+ NOT = { has_country_flag = enthroned_a_timurid_prince }
971
+ NOT = { primary_culture = mazandarani }
972
+ OR = {
973
+ was_tag = AKK
974
+ was_tag = QAR
975
+ }
976
+ }
977
+ has_country_shield = yes
978
+ per_qqq_a_state_on_horseback = {
979
+ icon = mission_marwari_horses
980
+ required_missions = { }
981
+ position = 1
982
+ provinces_to_highlight = {
983
+ }
984
+ trigger = {
985
+ has_global_modifier_value = {
986
+ which = cavalry_power
987
+ value = 0.25
988
+ }
989
+ num_of_cavalry = 60
990
+ is_in_deficit = no
991
+ NOT = { num_of_loans = 1 }
992
+ }
993
+ effect = {
994
+ unlock_estate = {
995
+ estate = estate_nomadic_tribes
996
+ }
997
+ add_government_power = {
998
+ mechanic_type = persian_influence_mechanic
999
+ power_type = persian_influence
1000
+ value = 30
1001
+ }
1002
+ }
1003
+ }
1004
+ per_qqq_legacy_of_the_seljuk = {
1005
+ icon = geo_turkoman
1006
+ required_missions = { per_qqq_a_state_on_horseback }
1007
+ position = 2
1008
+ provinces_to_highlight = {
1009
+ region = central_asia_region
1010
+ NOT = { owned_by = root }
1011
+ }
1012
+ trigger = {
1013
+ estate_loyalty = {
1014
+ estate = estate_nomadic_tribes
1015
+ loyalty = 70
1016
+ }
1017
+ num_of_estate_agendas_completed = {
1018
+ estate = estate_nomadic_tribes
1019
+ value = 5
1020
+ }
1021
+ num_of_owned_provinces_with = {
1022
+ region = central_asia_region
1023
+ value = 60
1024
+ }
1025
+ reform_level = 5
1026
+ }
1027
+ effect = {
1028
+ country_event_with_effect_insight = {
1029
+ id = flavor_per.23
1030
+ effect = "
1031
+ unlock_government_reform = {
1032
+ government_reform = legacy_of_the_seljuk_reform
1033
+ }
1034
+ add_government_reform = legacy_of_the_seljuk_reform
1035
+ "
1036
+ }
1037
+ }
1038
+ }
1039
+ }
1040
+ ############################################################################
1041
+ kok_persia_defense_mission_slot_3 = {
1042
+ slot = 3
1043
+ generic = no
1044
+ ai = yes
1045
+ potential_on_load = {
1046
+ has_dlc = "King of Kings"
1047
+ }
1048
+ potential = {
1049
+ NOT = { map_setup = map_setup_random }
1050
+ has_dlc = "King of Kings"
1051
+ or = {
1052
+ tag = PER
1053
+ tag = ERS
1054
+ }
1055
+ }
1056
+ has_country_shield = yes
1057
+ per_establish_western_defenses = {
1058
+ icon = per_establish_western_defenses
1059
+ required_missions = { per_butcher_black_sheep }
1060
+ position = 3
1061
+ provinces_to_highlight = {
1062
+ OR = {
1063
+ area = imereti_area
1064
+ area = samtskhe_area
1065
+ area = armenia_area
1066
+ area = north_kurdistan_area
1067
+ area = shahrizor_area
1068
+ area = luristan_area
1069
+ area = khuzestan_area
1070
+ }
1071
+ country_or_non_sovereign_subject_holds = root
1072
+ NOT = { has_building = ramparts }
1073
+ }
1074
+ trigger = {
1075
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1076
+ OR = {
1077
+ area = imereti_area
1078
+ area = samtskhe_area
1079
+ area = armenia_area
1080
+ area = north_kurdistan_area
1081
+ area = shahrizor_area
1082
+ area = luristan_area
1083
+ area = khuzestan_area
1084
+ }
1085
+ has_building = ramparts
1086
+ value = 4
1087
+ }
1088
+ }
1089
+ effect = {
1090
+ custom_tooltip = per_establish_western_defenses_at
1091
+ tooltip = {
1092
+ add_province_modifier = {
1093
+ name = per_reinforced_defenses
1094
+ duration = -1
1095
+ desc = per_establish_western_defenses_bt
1096
+ }
1097
+ }
1098
+ hidden_effect = {
1099
+ random_province = { limit = { area = imereti_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1100
+ random_province = { limit = { area = samtskhe_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1101
+ random_province = { limit = { area = armenia_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1102
+ random_province = { limit = { area = north_kurdistan_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1103
+ random_province = { limit = { area = shahrizor_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1104
+ random_province = { limit = { area = luristan_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1105
+ random_province = { limit = { area = khuzestan_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1106
+ }
1107
+ }
1108
+ }
1109
+ per_reform_our_defenses = {
1110
+ icon = per_reform_our_defenses
1111
+ required_missions = {
1112
+ per_establish_western_defenses
1113
+ per_establish_eastern_defenses
1114
+ }
1115
+ position = 4
1116
+ provinces_to_highlight = {
1117
+ OR = {
1118
+ region = persia_region
1119
+ region = khorasan_region
1120
+ }
1121
+ OR = {
1122
+ has_terrain = mountain
1123
+ has_terrain = highlands
1124
+ }
1125
+ owned_by = root
1126
+ has_fort_building_trigger = no
1127
+ }
1128
+ trigger = {
1129
+ fortification_expert = 3
1130
+ num_of_owned_provinces_with = {
1131
+ OR = {
1132
+ region = persia_region
1133
+ region = khorasan_region
1134
+ }
1135
+ OR = {
1136
+ has_terrain = mountain
1137
+ has_terrain = highlands
1138
+ }
1139
+ has_fort_building_trigger = yes
1140
+ value = 12
1141
+ }
1142
+ }
1143
+ effect = {
1144
+ add_army_tradition = 10
1145
+ unlock_estate_privilege = { estate_privilege = estate_nobles_defensive_policy modifier_tooltip = estate_privilege_defensive_policy_tooltip }
1146
+ unlock_estate_privilege = { estate_privilege = estate_qizilbash_defensive_policy }
1147
+ unlock_estate_privilege = { estate_privilege = estate_ghulams_defensive_policy }
1148
+ }
1149
+ }
1150
+ }
1151
+ kok_persia_conquest_mission_slot_4 = {
1152
+ slot = 4
1153
+ generic = no
1154
+ ai = yes
1155
+ potential_on_load = {
1156
+ has_dlc = "King of Kings"
1157
+ }
1158
+ potential = {
1159
+ NOT = { map_setup = map_setup_random }
1160
+ has_dlc = "King of Kings"
1161
+ or = {
1162
+ tag = PER
1163
+ tag = ERS
1164
+ }
1165
+ }
1166
+ has_country_shield = yes
1167
+ per_secure_khorasan = {
1168
+ icon = mission_afghan_frontier
1169
+ required_missions = { }
1170
+ position = 1
1171
+ provinces_to_highlight = {
1172
+ region = khorasan_region
1173
+ NOT = { country_or_non_sovereign_subject_holds = root }
1174
+ }
1175
+ trigger = {
1176
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1177
+ region = khorasan_region
1178
+ value = 24
1179
+ }
1180
+ }
1181
+ effect = {
1182
+ add_permanent_claim_multi_provinces = { target = sind_sagar_area }
1183
+ add_permanent_claim_multi_provinces = { target = lahore_area }
1184
+ add_permanent_claim_multi_provinces = { target = multan_area }
1185
+ add_permanent_claim_multi_provinces = { target = sirhind_area }
1186
+ add_permanent_claim_multi_provinces = { target = upper_doab_area }
1187
+ add_permanent_claim_multi_provinces = { target = kashmir_area }
1188
+ add_permanent_claim_multi_provinces = { target = himalayan_hills_area }
1189
+ khorasan_region = {
1190
+ limit = { country_or_non_sovereign_subject_holds = root }
1191
+ add_local_autonomy = -20
1192
+ add_devastation = -5
1193
+ }
1194
+ }
1195
+ }
1196
+ per_establish_eastern_defenses = {
1197
+ icon = per_establish_eastern_defenses
1198
+ required_missions = { per_secure_khorasan }
1199
+ position = 3
1200
+ provinces_to_highlight = {
1201
+ OR = {
1202
+ area = kalat_area
1203
+ area = sistan_area
1204
+ area = ghor_area
1205
+ area = kabulistan_area
1206
+ area = mashhad_area
1207
+ area = birjand_area
1208
+ area = makran_area
1209
+ }
1210
+ country_or_non_sovereign_subject_holds = root
1211
+ NOT = { has_building = ramparts }
1212
+ }
1213
+ trigger = {
1214
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1215
+ OR = {
1216
+ area = kalat_area
1217
+ area = sistan_area
1218
+ area = ghor_area
1219
+ area = kabulistan_area
1220
+ area = mashhad_area
1221
+ area = birjand_area
1222
+ area = makran_area
1223
+ }
1224
+ has_building = ramparts
1225
+ value = 4
1226
+ }
1227
+ }
1228
+ effect = {
1229
+ custom_tooltip = per_establish_eastern_defenses_at
1230
+ tooltip = {
1231
+ add_province_modifier = {
1232
+ name = per_reinforced_defenses
1233
+ duration = -1
1234
+ desc = per_establish_western_defenses_bt
1235
+ }
1236
+ }
1237
+ hidden_effect = {
1238
+ random_province = { limit = { area = kalat_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1239
+ random_province = { limit = { area = sistan_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1240
+ random_province = { limit = { area = ghor_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1241
+ random_province = { limit = { area = kabulistan_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1242
+ random_province = { limit = { area = mashhad_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1243
+ random_province = { limit = { area = birjand_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1244
+ random_province = { limit = { area = makran_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1245
+ }
1246
+ }
1247
+ }
1248
+ }
1249
+ kok_persia_conquest_mission_slot_5 = {
1250
+ slot = 5
1251
+ generic = no
1252
+ ai = yes
1253
+ potential_on_load = {
1254
+ has_dlc = "King of Kings"
1255
+ }
1256
+ potential = {
1257
+ NOT = { map_setup = map_setup_random }
1258
+ has_dlc = "King of Kings"
1259
+ or = {
1260
+ tag = PER
1261
+ tag = ERS
1262
+ }
1263
+ }
1264
+ has_country_shield = yes
1265
+ par_invade_india = {
1266
+ icon = mission_subdue_rajputana
1267
+ required_missions = { per_secure_khorasan }
1268
+ position = 2
1269
+ provinces_to_highlight = {
1270
+ OR = {
1271
+ area = sind_sagar_area
1272
+ area = lahore_area
1273
+ area = multan_area
1274
+ area = sirhind_area
1275
+ area = upper_doab_area
1276
+ }
1277
+ NOT = { country_or_non_sovereign_subject_holds = root }
1278
+ }
1279
+ trigger = {
1280
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1281
+ OR = {
1282
+ area = sind_sagar_area
1283
+ area = lahore_area
1284
+ area = multan_area
1285
+ area = sirhind_area
1286
+ area = upper_doab_area
1287
+ area = kashmir_area
1288
+ area = himalayan_hills_area
1289
+ }
1290
+ value = 20
1291
+ }
1292
+ }
1293
+ effect = {
1294
+ country_event_with_effect_insight = {
1295
+ id = flavor_per.52
1296
+ effect = "per_invade_india_effect = yes"
1297
+ }
1298
+ }
1299
+ }
1300
+ per_fortify_the_thar_desert = {
1301
+ icon = mission_arabian_fort
1302
+ required_missions = { par_invade_india }
1303
+ position = 3
1304
+ provinces_to_highlight = {
1305
+ OR = {
1306
+ AND = {
1307
+ OR = {
1308
+ area = northern_sindh_area
1309
+ area = sindh_area
1310
+ area = jangladesh_area
1311
+ area = marwar_area
1312
+ area = patan_area
1313
+ area = saurashtra_area
1314
+ area = jaipur_area
1315
+ }
1316
+ NOT = { country_or_non_sovereign_subject_holds = root }
1317
+ }
1318
+ AND = {
1319
+ OR = {
1320
+ area = sindh_area
1321
+ area = jangladesh_area
1322
+ area = marwar_area
1323
+ area = patan_area
1324
+ }
1325
+ NOT = { has_building = ramparts }
1326
+ country_or_non_sovereign_subject_holds = root
1327
+ }
1328
+ }
1329
+ }
1330
+ trigger = {
1331
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1332
+ OR = {
1333
+ area = northern_sindh_area
1334
+ area = sindh_area
1335
+ area = jangladesh_area
1336
+ area = marwar_area
1337
+ area = patan_area
1338
+ area = saurashtra_area
1339
+ area = jaipur_area
1340
+ }
1341
+ value = 20
1342
+ }
1343
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1344
+ OR = {
1345
+ area = sindh_area
1346
+ area = jangladesh_area
1347
+ area = marwar_area
1348
+ area = patan_area
1349
+ }
1350
+ has_building = ramparts
1351
+ value = 4
1352
+ }
1353
+ }
1354
+ effect = {
1355
+ add_permanent_claim_multi_provinces = { target = west_india_region }
1356
+ add_permanent_claim_multi_provinces = { target = hindusthan_region }
1357
+ custom_tooltip = per_fortify_the_thar_desert_at
1358
+ tooltip = {
1359
+ add_province_modifier = {
1360
+ name = per_reinforced_defenses
1361
+ duration = -1
1362
+ desc = per_establish_western_defenses_bt
1363
+ }
1364
+ }
1365
+ hidden_effect = {
1366
+ random_province = { limit = { area = sindh_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1367
+ random_province = { limit = { area = jangladesh_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1368
+ random_province = { limit = { area = marwar_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1369
+ random_province = { limit = { area = patan_area country_or_non_sovereign_subject_holds = root has_building = ramparts } add_province_modifier = { name = per_reinforced_defenses duration = -1 } }
1370
+ }
1371
+ }
1372
+ }
1373
+ per_master_of_india = {
1374
+ icon = mission_conquer_persia
1375
+ required_missions = { per_fortify_the_thar_desert }
1376
+ position = 4
1377
+ provinces_to_highlight = {
1378
+ OR = {
1379
+ region = west_india_region
1380
+ region = hindusthan_region
1381
+ }
1382
+ }
1383
+ trigger = {
1384
+ owns_core_province = 522
1385
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1386
+ OR = {
1387
+ region = west_india_region
1388
+ region = hindusthan_region
1389
+ }
1390
+ value = 100
1391
+ }
1392
+ }
1393
+ effect = {
1394
+ add_claim_multi_provinces = { target = india_superregion }
1395
+ add_dip_power = 200
1396
+ add_stability_or_adm_power = yes
1397
+ add_country_modifier = {
1398
+ name = per_master_of_india_modifier
1399
+ duration = -1
1400
+ }
1401
+ }
1402
+ }
1403
+ }
1404
+
1405
+
1406
+ kok_persia_military_mission_slot_1 = {
1407
+ slot = 1
1408
+ generic = no
1409
+ ai = yes
1410
+ potential_on_load = {
1411
+ has_dlc = "King of Kings"
1412
+ }
1413
+ potential = {
1414
+ NOT = { map_setup = map_setup_random }
1415
+ has_dlc = "King of Kings"
1416
+ or = {
1417
+ tag = PER
1418
+ tag = ERS
1419
+ }
1420
+ }
1421
+ has_country_shield = yes
1422
+ per_create_the_tupchi = {
1423
+ icon = per_create_the_tupchi
1424
+ required_missions = { per_rally_the_warriors }
1425
+ position = 8
1426
+ provinces_to_highlight = {
1427
+ has_discovered = root
1428
+ is_capital = yes
1429
+ continent = europe
1430
+ owner = {
1431
+ OR = {
1432
+ mil_tech = root
1433
+ AND = { NOT = { alliance_with = root } NOT = { is_subject_of = root } }
1434
+ has_opinion = { who = root value = 150 }
1435
+ }
1436
+ }
1437
+ }
1438
+ trigger = {
1439
+ num_of_artillery = 30
1440
+ OR = {
1441
+ custom_trigger_tooltip = {
1442
+ tooltip = per_create_the_tupchi_tt
1443
+ any_known_country = {
1444
+ capital_scope = { continent = europe }
1445
+ mil_tech = root
1446
+ OR = {
1447
+ alliance_with = root
1448
+ is_subject_of = root
1449
+ }
1450
+ has_opinion = {
1451
+ who = root
1452
+ value = 150
1453
+ }
1454
+ }
1455
+ }
1456
+ AND = {
1457
+ has_better_tech_than_westerns = yes
1458
+ has_more_institutions_than_westerns = yes
1459
+ OR = {
1460
+ AND = {
1461
+ army_tradition = 75
1462
+ army_professionalism = 0.8
1463
+ }
1464
+ mil_tech = 20
1465
+ }
1466
+ mil_power = 200
1467
+ }
1468
+ }
1469
+ }
1470
+ effect = {
1471
+ unlock_estate_privilege = {
1472
+ estate_privilege = estate_nobles_tupchi_artillery_corps
1473
+ modifier_tooltip = estate_nobles_tupchi_artillery_corps_tooltip
1474
+ effect_tooltip = "custom_tooltip = tupchi_artillery_corps_tt"
1475
+ }
1476
+ unlock_estate_privilege = { estate_privilege = estate_qizilbash_tupchi_artillery_corps }
1477
+ unlock_estate_privilege = { estate_privilege = estate_ghulams_tupchi_artillery_corps }
1478
+ }
1479
+ }
1480
+ per_create_the_ghulams = {
1481
+ icon = per_create_the_ghulams
1482
+ required_missions = {
1483
+ per_qizilbash_loyalty
1484
+ }
1485
+ position = 9
1486
+ provinces_to_highlight = {
1487
+ culture_group = caucasian
1488
+ OR = {
1489
+ NOT = { has_manpower_building_trigger = yes }
1490
+ NOT = { num_of_times_improved = 2 }
1491
+ NOT = { owned_by = root }
1492
+ }
1493
+ }
1494
+ trigger = {
1495
+ num_of_owned_provinces_with = {
1496
+ culture_group = caucasian
1497
+ has_manpower_building_trigger = yes
1498
+ num_of_times_improved = 2
1499
+ value = 12
1500
+ }
1501
+ }
1502
+ effect = {
1503
+ country_event_with_effect_insight = {
1504
+ id = flavor_per.25
1505
+ effect = "
1506
+ define_advisor = {
1507
+ type = commandant
1508
+ cost_multiplier = 0.25
1509
+ culture = georgian
1510
+ skill = 3
1511
+ }
1512
+ unlock_estate = {
1513
+ estate = estate_ghulams
1514
+ }
1515
+ "
1516
+ }
1517
+ }
1518
+ }
1519
+ per_the_tofangchi = {
1520
+ icon = per_the_tofangchi
1521
+ required_missions = { per_create_the_ghulams }
1522
+ position = 10
1523
+ provinces_to_highlight = {
1524
+ }
1525
+ trigger = {
1526
+ if = {
1527
+ limit = { has_dlc = "Cradle of Civilization" }
1528
+ army_professionalism = 0.5
1529
+ }
1530
+ else = { army_tradition = 65 }
1531
+ num_of_infantry = 100
1532
+ }
1533
+ effect = {
1534
+ unlock_estate_privilege = {
1535
+ estate_privilege = estate_nobles_tofangchi_regiment
1536
+ modifier_tooltip = estate_nobles_tofangchi_regiment_tooltip
1537
+ }
1538
+ unlock_estate_privilege = {
1539
+ estate_privilege = estate_qizilbash_tofangchi_regiment
1540
+ }
1541
+ unlock_estate_privilege = {
1542
+ estate_privilege = estate_ghulams_tofangchi_regiment
1543
+ }
1544
+ }
1545
+ }
1546
+ }
1547
+ kok_persia_military_mission_slot_2 = {
1548
+ slot = 2
1549
+ generic = no
1550
+ ai = yes
1551
+ potential_on_load = {
1552
+ has_dlc = "King of Kings"
1553
+ }
1554
+ potential = {
1555
+ NOT = { map_setup = map_setup_random }
1556
+ has_dlc = "King of Kings"
1557
+ or = {
1558
+ tag = PER
1559
+ tag = ERS
1560
+ }
1561
+ }
1562
+ has_country_shield = yes
1563
+ per_rally_the_warriors = {
1564
+ icon = mission_persian_soldiers
1565
+ required_missions = { }
1566
+ position = 7
1567
+ provinces_to_highlight = {
1568
+ }
1569
+ trigger = {
1570
+ army_size = 40
1571
+ }
1572
+ effect = {
1573
+ create_general_with_pips = {
1574
+ tradition = 80
1575
+ add_shock = 2
1576
+ }
1577
+ }
1578
+ }
1579
+ per_qizilbash_loyalty = {
1580
+ icon = per_qizilbash_loyalty
1581
+ required_missions = { per_rally_the_warriors }
1582
+ position = 8
1583
+ provinces_to_highlight = {
1584
+ }
1585
+ trigger = {
1586
+ if = {
1587
+ limit = {
1588
+ has_estate = estate_qizilbash
1589
+ }
1590
+ estate_loyalty = {
1591
+ estate = estate_qizilbash
1592
+ loyalty = 65
1593
+ }
1594
+ num_of_estate_privileges = {
1595
+ estate = estate_qizilbash
1596
+ value = 3
1597
+ }
1598
+ }
1599
+ else = {
1600
+ army_tradition = 60
1601
+ commandant = 3
1602
+ }
1603
+ }
1604
+ effect = {
1605
+ capital_scope = {
1606
+ create_units_of_type_in_province = {
1607
+ custom_tooltip = per_qizilbash_loyalty_bt
1608
+ who = root
1609
+ unit_type = qizilbash_infantry
1610
+ amount = 5
1611
+ }
1612
+ }
1613
+ if = {
1614
+ limit = { estate_has_exempt_from_seize_land_privilege = { estate = estate_nobles } }
1615
+ add_estate_loyalty = {
1616
+ estate = estate_qizilbash
1617
+ loyalty = 10
1618
+ }
1619
+ }
1620
+ else = {
1621
+ transfer_percentage_crownland_share = {
1622
+ custom_tooltip = per_qizilbash_loyalty_at
1623
+ from_estate = estate_nobles
1624
+ target_estate = estate_qizilbash
1625
+ amount = 0.5
1626
+ }
1627
+ }
1628
+ }
1629
+ }
1630
+ per_recruit_the_qizilbash = {
1631
+ icon = per_recruit_the_qizilbash
1632
+ required_missions = { per_qizilbash_loyalty }
1633
+ position = 9
1634
+ provinces_to_highlight = {
1635
+ }
1636
+ trigger = {
1637
+ if = {
1638
+ limit = { has_estate = estate_qizilbash }
1639
+ num_of_qizilbash = 30
1640
+ has_leader_with = {
1641
+ general = yes
1642
+ total_pips = 12
1643
+ }
1644
+ }
1645
+ else = {
1646
+ has_global_modifier_value = {
1647
+ which = discipline
1648
+ value = 0.25
1649
+ }
1650
+ }
1651
+ }
1652
+ effect = {
1653
+ add_army_professionalism = 0.02
1654
+ if = {
1655
+ limit = {
1656
+ has_estate = estate_qizilbash
1657
+ }
1658
+ unlock_estate_privilege = {
1659
+ estate_privilege = estate_qizilbash_regimental_discipline
1660
+ modifier_tooltip = estate_qizilbash_regimental_discipline_tooltip
1661
+ effect_tooltip = "
1662
+ scaling_with_influence_privilege_tooltip = {
1663
+ estate_privilege = estate_qizilbash_regimental_discipline
1664
+ }
1665
+ "
1666
+ }
1667
+ }
1668
+ else = {
1669
+ add_army_tradition_or_mil_power = { amount = 15 }
1670
+ hidden_effect = {
1671
+ unlock_estate_privilege = { estate_privilege = estate_qizilbash_regimental_discipline }
1672
+ }
1673
+ }
1674
+ }
1675
+ }
1676
+ per_balance_of_power = {
1677
+ icon = per_balance_of_power
1678
+ required_missions = {
1679
+ per_create_the_ghulams
1680
+ per_recruit_the_qizilbash
1681
+ }
1682
+ position = 10
1683
+ provinces_to_highlight = {
1684
+ }
1685
+ trigger = {
1686
+ if = {
1687
+ limit = {
1688
+ NOT = { mission_completed = per_create_the_ghulams }
1689
+ }
1690
+ custom_trigger_tooltip = {
1691
+ tooltip = per_balance_of_power_ct
1692
+ mission_completed = per_create_the_ghulams
1693
+ }
1694
+ }
1695
+ else = {
1696
+ if = {
1697
+ limit = {
1698
+ has_estate = estate_nobles
1699
+ has_estate = estate_qizilbash
1700
+ has_estate = estate_ghulams
1701
+ }
1702
+ custom_trigger_tooltip = {
1703
+ tooltip = per_balance_of_power_ct
1704
+ OR = {
1705
+ AND = {
1706
+ NOT = { num_of_estate_privileges = { estate = estate_nobles value = 1 } }
1707
+ NOT = { num_of_estate_privileges = { estate = estate_qizilbash value = 1 } }
1708
+ NOT = { num_of_estate_privileges = { estate = estate_ghulams value = 1 } }
1709
+ }
1710
+ AND = {
1711
+ num_of_estate_privileges = { estate = estate_nobles value = 1 }
1712
+ num_of_estate_privileges = { estate = estate_qizilbash value = 1 }
1713
+ num_of_estate_privileges = { estate = estate_ghulams value = 1 }
1714
+ NOT = { num_of_estate_privileges = { estate = estate_nobles value = 2 } }
1715
+ NOT = { num_of_estate_privileges = { estate = estate_qizilbash value = 2 } }
1716
+ NOT = { num_of_estate_privileges = { estate = estate_ghulams value = 2 } }
1717
+ }
1718
+ AND = {
1719
+ num_of_estate_privileges = { estate = estate_nobles value = 2 }
1720
+ num_of_estate_privileges = { estate = estate_qizilbash value = 2 }
1721
+ num_of_estate_privileges = { estate = estate_ghulams value = 2 }
1722
+ NOT = { num_of_estate_privileges = { estate = estate_nobles value = 3 } }
1723
+ NOT = { num_of_estate_privileges = { estate = estate_qizilbash value = 3 } }
1724
+ NOT = { num_of_estate_privileges = { estate = estate_ghulams value = 3 } }
1725
+ }
1726
+ AND = {
1727
+ num_of_estate_privileges = { estate = estate_nobles value = 3 }
1728
+ num_of_estate_privileges = { estate = estate_qizilbash value = 3 }
1729
+ num_of_estate_privileges = { estate = estate_ghulams value = 3 }
1730
+ NOT = { num_of_estate_privileges = { estate = estate_nobles value = 4 } }
1731
+ NOT = { num_of_estate_privileges = { estate = estate_qizilbash value = 4 } }
1732
+ NOT = { num_of_estate_privileges = { estate = estate_ghulams value = 4 } }
1733
+ }
1734
+ AND = {
1735
+ num_of_estate_privileges = { estate = estate_nobles value = 4 }
1736
+ num_of_estate_privileges = { estate = estate_qizilbash value = 4 }
1737
+ num_of_estate_privileges = { estate = estate_ghulams value = 4 }
1738
+ NOT = { num_of_estate_privileges = { estate = estate_nobles value = 5 } }
1739
+ NOT = { num_of_estate_privileges = { estate = estate_qizilbash value = 5 } }
1740
+ NOT = { num_of_estate_privileges = { estate = estate_ghulams value = 5 } }
1741
+ }
1742
+ AND = {
1743
+ num_of_estate_privileges = { estate = estate_nobles value = 5 }
1744
+ num_of_estate_privileges = { estate = estate_qizilbash value = 5 }
1745
+ num_of_estate_privileges = { estate = estate_ghulams value = 5 }
1746
+ NOT = { num_of_estate_privileges = { estate = estate_nobles value = 6 } }
1747
+ NOT = { num_of_estate_privileges = { estate = estate_qizilbash value = 6 } }
1748
+ NOT = { num_of_estate_privileges = { estate = estate_ghulams value = 6 } }
1749
+ }
1750
+ AND = {
1751
+ num_of_estate_privileges = { estate = estate_nobles value = 6 }
1752
+ num_of_estate_privileges = { estate = estate_qizilbash value = 6 }
1753
+ num_of_estate_privileges = { estate = estate_ghulams value = 6 }
1754
+ }
1755
+ }
1756
+ }
1757
+ estate_loyalty = { estate = estate_nobles loyalty = 50 }
1758
+ estate_loyalty = { estate = estate_qizilbash loyalty = 50 }
1759
+ estate_loyalty = { estate = estate_ghulams loyalty = 50 }
1760
+ }
1761
+ else = {
1762
+ crown_land_share = 50
1763
+ }
1764
+ }
1765
+ reform_level = 7
1766
+ if = {
1767
+ limit = { government = tribal }
1768
+ NOT = { government = tribal } #Just no. Stop being backwards
1769
+ }
1770
+ if = {
1771
+ limit = { government = native }
1772
+ NOT = { government = native } #Just no. Stop being backwards
1773
+ }
1774
+ }
1775
+ effect = {
1776
+ country_event_with_effect_insight = {
1777
+ id = flavor_per.36
1778
+ effect = "
1779
+ unlock_government_reform = {
1780
+ government_reform = divided_aristocracy_reform
1781
+ tooltip = yes
1782
+ }
1783
+ "
1784
+ }
1785
+ }
1786
+ }
1787
+ }
1788
+ ###########################################
1789
+ # The different Religious Paths of Persia #
1790
+ ###########################################
1791
+ kok_persia_religious_direction_mission = {
1792
+ slot = 4
1793
+ generic = no
1794
+ ai = yes
1795
+ potential_on_load = {
1796
+ has_dlc = "King of Kings"
1797
+ }
1798
+ potential = {
1799
+ NOT = { map_setup = map_setup_random }
1800
+ has_dlc = "King of Kings"
1801
+ or = {
1802
+ tag = PER
1803
+ tag = ERS
1804
+ }
1805
+ }
1806
+ has_country_shield = yes
1807
+ per_our_religious_direction = {
1808
+ icon = per_our_religious_direction
1809
+ required_missions = { }
1810
+ position = 5
1811
+ provinces_to_highlight = {
1812
+ }
1813
+ trigger = {
1814
+ OR = {
1815
+ inquisitor = 1
1816
+ theologian = 1
1817
+ }
1818
+ OR = {
1819
+ NOT = { has_estate = estate_church }
1820
+ num_of_estate_privileges = {
1821
+ estate = estate_church
1822
+ value = 3
1823
+ }
1824
+ }
1825
+ }
1826
+ effect = {
1827
+ add_adm_power = 50
1828
+ custom_tooltip = per_our_religious_direction_at
1829
+ enable_branching_mission_review = {
1830
+ key = PER
1831
+ ai_event_id = flavor_per.18
1832
+ }
1833
+ }
1834
+ }
1835
+ }
1836
+
1837
+ # Muslim
1838
+ kok_persia_mission_muslim_slot_3 = {
1839
+ slot = 3
1840
+ generic = no
1841
+ ai = yes
1842
+ potential_on_load = {
1843
+ has_dlc = "King of Kings"
1844
+ }
1845
+ potential = {
1846
+ NOT = { map_setup = map_setup_random }
1847
+ has_dlc = "King of Kings"
1848
+ or = {
1849
+ tag = PER
1850
+ tag = ERS
1851
+ }
1852
+ OR = {
1853
+ has_country_flag = per_shia_missions
1854
+ has_country_flag = per_sunni_missions
1855
+ }
1856
+ }
1857
+ has_country_shield = yes
1858
+ per_the_islamic_teachings = {
1859
+ icon = mission_fiqh_laws
1860
+ required_missions = { per_our_religious_direction }
1861
+ position = 6
1862
+ provinces_to_highlight = {
1863
+ }
1864
+ trigger = {
1865
+ not_in_mission_preview_mode = { key = PER }
1866
+ if = {
1867
+ limit = { religion_group = muslim }
1868
+ OR = {
1869
+ piety = 0.75
1870
+ NOT = { piety = -0.75 }
1871
+ }
1872
+ if = {
1873
+ limit = { has_dlc = "Cradle of Civilization" }
1874
+ has_religious_scholars_trigger = yes
1875
+ }
1876
+ if = {
1877
+ limit = { has_estate = estate_church }
1878
+ num_of_estate_agendas_completed = {
1879
+ estate = estate_church
1880
+ value = 2
1881
+ }
1882
+ }
1883
+ else = {
1884
+ NOT = { has_estate = estate_church }
1885
+ }
1886
+ }
1887
+ else = {
1888
+ if = {
1889
+ limit = { has_estate = estate_church }
1890
+ num_of_estate_agendas_completed = {
1891
+ estate = estate_church
1892
+ value = 5 #Just play Muslim Persia...
1893
+ }
1894
+ }
1895
+ else = {
1896
+ NOT = { has_estate = estate_church }
1897
+ }
1898
+ }
1899
+ }
1900
+ effect = {
1901
+ add_prestige_or_monarch_power = { amount = 10 }
1902
+ change_piety_effect = {
1903
+ amount = 0.25
1904
+ }
1905
+ add_estate_loyalty = {
1906
+ estate = estate_church
1907
+ loyalty = 10
1908
+ }
1909
+ #custom_tooltip = per_the_islamic_teachings_at
1910
+ #enable_branching_mission_review = {
1911
+ # key = PER_muslim
1912
+ # ai_event_id = flavor_per.45
1913
+ #}
1914
+ }
1915
+ }
1916
+ per_convert_persia = {
1917
+ icon = per_convert_persia
1918
+ required_missions = { per_the_islamic_teachings }
1919
+ position = 7
1920
+ provinces_to_highlight = {
1921
+ region = persia_region
1922
+ NOT = { religion = root }
1923
+ }
1924
+ trigger = {
1925
+ not_in_mission_preview_mode = { key = PER }
1926
+ persia_region = {
1927
+ religion = root
1928
+ type = all
1929
+ }
1930
+ }
1931
+ effect = {
1932
+ set_trade_power_requirement_of_propogate_religion = { value = 35 }
1933
+ add_country_modifier = {
1934
+ name = per_converted_persia_modifier
1935
+ duration = 9125
1936
+ }
1937
+ }
1938
+ }
1939
+ }
1940
+ # Muslim Path Missions
1941
+ kok_persia_mission_shia_slot_3 = {
1942
+ slot = 3
1943
+ generic = no
1944
+ ai = yes
1945
+ potential_on_load = {
1946
+ has_dlc = "King of Kings"
1947
+ }
1948
+ potential = {
1949
+ NOT = { map_setup = map_setup_random }
1950
+ has_dlc = "King of Kings"
1951
+ or = {
1952
+ tag = PER
1953
+ tag = ERS
1954
+ }
1955
+ has_country_flag = per_shia_missions
1956
+ }
1957
+ has_country_shield = yes
1958
+ per_great_shia_empire = {
1959
+ icon = per_great_shia_empire
1960
+ required_missions = {
1961
+ per_convert_persia
1962
+ per_our_religious_stance
1963
+ }
1964
+ position = 8
1965
+ provinces_to_highlight = {
1966
+ owned_by = root
1967
+ NOT = { religion = shiite }
1968
+ }
1969
+ trigger = {
1970
+ not_in_mission_preview_mode = { key = PER }
1971
+ development_in_provinces = {
1972
+ religion = shiite
1973
+ value = 1000
1974
+ }
1975
+ }
1976
+ effect = {
1977
+ add_government_power = {
1978
+ mechanic_type = persian_influence_mechanic
1979
+ power_type = persian_influence
1980
+ value = 20
1981
+ }
1982
+ add_country_modifier = {
1983
+ name = per_shia_empire
1984
+ duration = 9125
1985
+ }
1986
+ }
1987
+ }
1988
+ per_unify_the_shia_realms = {
1989
+ icon = per_unify_the_shia_realms
1990
+ required_missions = {
1991
+ per_great_shia_empire
1992
+ }
1993
+ position = 9
1994
+ provinces_to_highlight = {
1995
+ religion = shiite
1996
+ OR = {
1997
+ region = arabia_region
1998
+ continent = africa
1999
+ superregion = india_superregion
2000
+ }
2001
+ owner = {
2002
+ OR = {
2003
+ NOT = { religion = shiite }
2004
+ AND = {
2005
+ NOT = { tag = root }
2006
+ NOT = { alliance_with = root }
2007
+ NOT = { is_subject_of = root }
2008
+ }
2009
+ }
2010
+ }
2011
+ }
2012
+ trigger = {
2013
+ not_in_mission_preview_mode = { key = PER }
2014
+ calc_true_if = {
2015
+ desc = per_unify_the_shia_realms_at
2016
+ all_province = {
2017
+ OR = {
2018
+ region = arabia_region
2019
+ continent = africa
2020
+ superregion = india_superregion
2021
+ }
2022
+ religion = shiite
2023
+ owner = {
2024
+ religion = shiite
2025
+ OR = {
2026
+ tag = root
2027
+ alliance_with = root
2028
+ is_subject_of = root
2029
+ }
2030
+ }
2031
+ }
2032
+ amount = 12
2033
+ }
2034
+ if = {
2035
+ limit = { has_defender_of_faith_religion = yes }
2036
+ is_defender_of_faith = yes
2037
+ }
2038
+ }
2039
+ effect = {
2040
+ if = {
2041
+ limit = { has_government_mechanic = persian_influence_mechanic }
2042
+ custom_tooltip = per_unify_the_shia_realms_bt
2043
+ hidden_effect = {
2044
+ every_ally = {
2045
+ limit = {
2046
+ religion = shiite
2047
+ any_owned_province = {
2048
+ OR = {
2049
+ region = arabia_region
2050
+ continent = africa
2051
+ }
2052
+ }
2053
+ }
2054
+ set_country_flag = easier_to_get_into_persian_sphere
2055
+ }
2056
+ }
2057
+ }
2058
+ add_government_power = {
2059
+ mechanic_type = persian_influence_mechanic
2060
+ power_type = persian_influence
2061
+ value = 20
2062
+ }
2063
+ add_country_modifier = {
2064
+ name = per_protector_of_the_shia_faith
2065
+ duration = -1
2066
+ }
2067
+ }
2068
+ }
2069
+ }
2070
+ kok_persia_mission_sunni_slot_3 = {
2071
+ slot = 3
2072
+ generic = no
2073
+ ai = yes
2074
+ potential_on_load = {
2075
+ has_dlc = "King of Kings"
2076
+ }
2077
+ potential = {
2078
+ NOT = { map_setup = map_setup_random }
2079
+ has_dlc = "King of Kings"
2080
+ or = {
2081
+ tag = PER
2082
+ tag = ERS
2083
+ }
2084
+ has_country_flag = per_sunni_missions
2085
+ }
2086
+ has_country_shield = yes
2087
+ per_abbasid_successor = {
2088
+ icon = mission_the_caliph
2089
+ required_missions = {
2090
+ per_convert_persia
2091
+ per_our_religious_stance
2092
+ }
2093
+ position = 8
2094
+ provinces_to_highlight = {
2095
+ OR = {
2096
+ region = persia_region
2097
+ region = mashriq_region
2098
+ region = arabia_region
2099
+ region = egypt_region
2100
+ region = maghreb_region
2101
+ }
2102
+ OR = {
2103
+ AND = {
2104
+ religion_group = root
2105
+ NOT = { religion = root }
2106
+ }
2107
+ NOT = { country_or_subject_holds = root }
2108
+ }
2109
+ }
2110
+ trigger = {
2111
+ not_in_mission_preview_mode = { key = PER }
2112
+ persia_region = {
2113
+ country_or_subject_holds = root
2114
+ OR = {
2115
+ NOT = { religion_group = root }
2116
+ religion = root
2117
+ }
2118
+ type = all
2119
+ }
2120
+ mashriq_region = {
2121
+ country_or_subject_holds = root
2122
+ OR = {
2123
+ NOT = { religion_group = root }
2124
+ religion = root
2125
+ }
2126
+ type = all
2127
+ }
2128
+ arabia_region = {
2129
+ country_or_subject_holds = root
2130
+ OR = {
2131
+ NOT = { religion_group = root }
2132
+ religion = root
2133
+ }
2134
+ type = all
2135
+ }
2136
+ num_of_provinces_owned_or_owned_by_subjects_with = {
2137
+ region = egypt_region
2138
+ OR = {
2139
+ NOT = { religion_group = root }
2140
+ religion = root
2141
+ }
2142
+ value = 20
2143
+ }
2144
+ num_of_provinces_owned_or_owned_by_subjects_with = {
2145
+ region = maghreb_region
2146
+ OR = {
2147
+ NOT = { religion_group = root }
2148
+ religion = root
2149
+ }
2150
+ value = 20
2151
+ }
2152
+ }
2153
+ effect = {
2154
+ add_adm_power = 50
2155
+ add_permanent_claim_multi_provinces = { target = lower_andalucia_area }
2156
+ add_permanent_claim_multi_provinces = { target = upper_andalucia_area }
2157
+ add_permanent_claim_multi_provinces = { target = alentejo_area }
2158
+ add_permanent_claim_multi_provinces = { target = extremadura_area }
2159
+ add_permanent_claim_multi_provinces = { target = toledo_area }
2160
+ add_permanent_claim_multi_provinces = { target = valencia_area }
2161
+ add_permanent_claim_multi_provinces = { target = baleares_area }
2162
+ add_permanent_claim_multi_provinces = { target = corsica_sardinia_area }
2163
+ add_permanent_claim_multi_provinces = { target = sicily_area }
2164
+ add_permanent_claim_multi_provinces = { target = western_sicily_area }
2165
+ }
2166
+ }
2167
+ per_unify_islam = {
2168
+ icon = per_unify_islam
2169
+ required_missions = { per_abbasid_successor }
2170
+ position = 9
2171
+ provinces_to_highlight = {
2172
+ }
2173
+ trigger = {
2174
+ not_in_mission_preview_mode = { key = PER }
2175
+ if = {
2176
+ limit = { has_dlc = "Star and Crescent" }
2177
+ has_unified_islam = yes
2178
+ }
2179
+ else = {
2180
+ religion_group = muslim
2181
+ owns_or_non_sovereign_subject_of = 504
2182
+ owns_or_non_sovereign_subject_of = 225
2183
+ owns_or_non_sovereign_subject_of = 151
2184
+ owns_or_non_sovereign_subject_of = 410
2185
+ owns_or_non_sovereign_subject_of = 385
2186
+ owns_or_non_sovereign_subject_of = 384
2187
+ owns_or_non_sovereign_subject_of = 124
2188
+ owns_or_non_sovereign_subject_of = 125
2189
+ owns_or_non_sovereign_subject_of = 425
2190
+ owns_or_non_sovereign_subject_of = 382
2191
+ owns_or_non_sovereign_subject_of = 454
2192
+ owns_or_non_sovereign_subject_of = 347
2193
+ owns_or_non_sovereign_subject_of = 388
2194
+ owns_or_non_sovereign_subject_of = 400
2195
+ }
2196
+ }
2197
+ effect = {
2198
+ enable_great_holy_war_cb = yes
2199
+ add_country_modifier = {
2200
+ name = per_muslim_empire
2201
+ duration = -1
2202
+ }
2203
+ }
2204
+ }
2205
+ }
2206
+ ######################
2207
+ kok_persia_mission_muslim_slot_4 = {
2208
+ slot = 4
2209
+ generic = no
2210
+ ai = yes
2211
+ potential_on_load = {
2212
+ has_dlc = "King of Kings"
2213
+ }
2214
+ potential = {
2215
+ NOT = { map_setup = map_setup_random }
2216
+ has_dlc = "King of Kings"
2217
+ or = {
2218
+ tag = PER
2219
+ tag = ERS
2220
+ }
2221
+ OR = {
2222
+ has_country_flag = per_shia_missions
2223
+ has_country_flag = per_sunni_missions
2224
+ }
2225
+ }
2226
+ has_country_shield = yes
2227
+ per_our_religious_stance = {
2228
+ icon = mission_islamic_golden_age
2229
+ required_missions = {
2230
+ per_the_islamic_teachings
2231
+ per_the_persian_influence
2232
+ }
2233
+ position = 7
2234
+ provinces_to_highlight = {
2235
+ }
2236
+ trigger = {
2237
+ not_in_mission_preview_mode = { key = PER }
2238
+ if = {
2239
+ limit = { has_estate = estate_church }
2240
+ OR = {
2241
+ estate_loyalty = {
2242
+ estate = estate_church
2243
+ loyalty = 70
2244
+ }
2245
+ crown_land_share = estate_church
2246
+ }
2247
+ }
2248
+ else = {
2249
+ NOT = { has_estate = estate_church }
2250
+ }
2251
+ if = {
2252
+ limit = { has_estate = estate_dhimmi }
2253
+ OR = {
2254
+ estate_loyalty = {
2255
+ estate = estate_dhimmi
2256
+ loyalty = 70
2257
+ }
2258
+ crown_land_share = estate_dhimmi
2259
+ }
2260
+ }
2261
+ else = {
2262
+ NOT = { has_estate = estate_dhimmi }
2263
+ }
2264
+ OR = {
2265
+ inquisitor = 1
2266
+ theologian = 1
2267
+ }
2268
+ }
2269
+ effect = {
2270
+ simple_dynamic_effect = {
2271
+ first_custom_tooltip = per_our_religious_stance_at
2272
+ first_limit = "inquisitor = 1"
2273
+ first_effect = "
2274
+ add_country_modifier = {
2275
+ name = per_increased_conversion_efforts
2276
+ duration = 9125
2277
+ }
2278
+ "
2279
+ second_custom_tooltip = per_our_religious_stance_bt
2280
+ second_limit = "theologian = 1"
2281
+ second_effect = "
2282
+ add_country_modifier = {
2283
+ name = per_increased_tolerance_efforts
2284
+ duration = 9125
2285
+ }
2286
+ "
2287
+ }
2288
+ }
2289
+ }
2290
+ per_sword_of_our_faith = {
2291
+ icon = per_sword_of_our_faith
2292
+ required_missions = { per_our_religious_stance }
2293
+ position = 9
2294
+ provinces_to_highlight = {
2295
+ OR = {
2296
+ NOT = { has_tax_building_trigger = yes }
2297
+ NOT = { has_manpower_building_trigger = yes }
2298
+ }
2299
+ religion = root
2300
+ owned_by = root
2301
+ }
2302
+ trigger = {
2303
+ not_in_mission_preview_mode = { key = PER }
2304
+ OR = {
2305
+ has_commanding_three_star = yes
2306
+ mil = 5
2307
+ full_idea_group = theocracy_gov_ideas
2308
+ full_idea_group = religious_ideas
2309
+ }
2310
+ num_of_owned_provinces_with = {
2311
+ religion = root
2312
+ has_tax_building_trigger = yes
2313
+ has_manpower_building_trigger = yes
2314
+ value = 30
2315
+ }
2316
+ }
2317
+ effect = {
2318
+ custom_tooltip = per_sword_of_our_faith_ct
2319
+ tooltip = {
2320
+ add_country_modifier = {
2321
+ name = per_persian_defender_of_faith
2322
+ duration = -1
2323
+ desc = UNTIL_NO_MORE_DOTF
2324
+ }
2325
+ }
2326
+ hidden_effect = {
2327
+ set_country_flag = per_gain_persian_dotf_buff
2328
+ if = {
2329
+ limit = { is_defender_of_faith = yes }
2330
+ add_country_modifier = {
2331
+ name = per_persian_defender_of_faith
2332
+ duration = -1
2333
+ desc = UNTIL_NO_MORE_DOTF
2334
+ }
2335
+ }
2336
+ }
2337
+ unlock_diplomatic_action = {
2338
+ type = fabricate_spread_the_true_faith_cb
2339
+ custom_tooltip = fabricate_spread_the_true_faith_cb_tt
2340
+ }
2341
+ }
2342
+ }
2343
+ }
2344
+ kok_persia_mission_muslim_slot_5 = {
2345
+ slot = 5
2346
+ generic = no
2347
+ ai = yes
2348
+ potential_on_load = {
2349
+ has_dlc = "King of Kings"
2350
+ }
2351
+ potential = {
2352
+ NOT = { map_setup = map_setup_random }
2353
+ has_dlc = "King of Kings"
2354
+ or = {
2355
+ tag = PER
2356
+ tag = ERS
2357
+ }
2358
+ OR = {
2359
+ has_country_flag = per_shia_missions
2360
+ has_country_flag = per_sunni_missions
2361
+ }
2362
+ }
2363
+ has_country_shield = yes
2364
+ per_the_persian_influence = {
2365
+ icon = per_the_persian_influence
2366
+ required_missions = { per_our_religious_direction }
2367
+ position = 6
2368
+ provinces_to_highlight = {
2369
+ }
2370
+ trigger = {
2371
+ not_in_mission_preview_mode = { key = PER }
2372
+ reform_level = 3
2373
+ development_in_provinces = {
2374
+ custom_trigger_tooltip = {
2375
+ tooltip = per_the_persian_influence_ct
2376
+ culture = root
2377
+ religion = root
2378
+ }
2379
+ value = 150
2380
+ }
2381
+ }
2382
+ effect = {
2383
+ country_event_with_effect_insight = {
2384
+ id = flavor_per.43
2385
+ effect = "
2386
+ unlock_government_reform = { government_reform = court_of_art_and_culture_reform }
2387
+ add_government_reform = court_of_art_and_culture_reform
2388
+ "
2389
+ }
2390
+ }
2391
+ }
2392
+ per_expand_our_influence = {
2393
+ icon = per_expand_our_influence
2394
+ required_missions = { per_the_persian_influence }
2395
+ position = 8
2396
+ provinces_to_highlight = {
2397
+ }
2398
+ trigger = {
2399
+ not_in_mission_preview_mode = { key = PER }
2400
+ OR = {
2401
+ num_of_subjects = 15
2402
+ custom_trigger_tooltip = {
2403
+ tooltip = per_expand_our_influence_at
2404
+ check_variable = {
2405
+ which = persian_influence_interaction_counter
2406
+ value = 5
2407
+ }
2408
+ }
2409
+ custom_trigger_tooltip = {
2410
+ tooltip = per_expand_our_influence_bt
2411
+ check_variable = {
2412
+ which = persian_influence_elevation_counter
2413
+ value = 5
2414
+ }
2415
+ }
2416
+ }
2417
+ }
2418
+ effect = {
2419
+ add_dip_power = 100
2420
+ improve_elevation_effect = yes
2421
+ improve_elevation_reduction = yes
2422
+ }
2423
+ }
2424
+ per_language_of_poetry = {
2425
+ icon = per_language_of_poetry
2426
+ required_missions = {
2427
+ per_sword_of_our_faith
2428
+ per_expand_our_influence
2429
+ }
2430
+ position = 10
2431
+ provinces_to_highlight = {
2432
+ OR = {
2433
+ AND = {
2434
+ owned_by = root
2435
+ NOT = { culture = root }
2436
+ }
2437
+ AND = {
2438
+ has_discovered = root
2439
+ is_capital = yes
2440
+ owner = { NOT = { primary_culture = root } }
2441
+ }
2442
+ }
2443
+ }
2444
+ trigger = {
2445
+ not_in_mission_preview_mode = { key = PER }
2446
+ OR = {
2447
+ custom_trigger_tooltip = {
2448
+ tooltip = per_language_of_poetry_at
2449
+ check_variable = {
2450
+ which = num_converted_to_own_culture
2451
+ value = 50
2452
+ }
2453
+ }
2454
+ custom_trigger_tooltip = {
2455
+ tooltip = per_language_of_poetry_bt
2456
+ check_variable = {
2457
+ which = num_of_forced_culture_conversions
2458
+ value = 15
2459
+ }
2460
+ }
2461
+ calc_true_if = {
2462
+ desc = per_language_of_poetry_ct
2463
+ all_subject_country = {
2464
+ primary_culture = root
2465
+ }
2466
+ amount = 10
2467
+ }
2468
+ }
2469
+ }
2470
+ effect = {
2471
+ improve_fabricate_religious_conflict = yes
2472
+ improve_persian_influence_abilities = yes
2473
+ add_country_modifier = {
2474
+ name = per_culture_of_art
2475
+ duration = -1
2476
+ }
2477
+ }
2478
+ }
2479
+ }
2480
+
2481
+ # Zoroastrian
2482
+ kok_persia_mission_zoroastrian_slot_3 = {
2483
+ slot = 3
2484
+ generic = no
2485
+ ai = yes
2486
+ potential_on_load = {
2487
+ has_dlc = "King of Kings"
2488
+ }
2489
+ potential = {
2490
+ NOT = { map_setup = map_setup_random }
2491
+ has_dlc = "King of Kings"
2492
+ or = {
2493
+ tag = PER
2494
+ tag = ERS
2495
+ }
2496
+ has_country_flag = per_zoroastrian_missions
2497
+ }
2498
+ has_country_shield = yes
2499
+ per_reborn_in_fire = {
2500
+ icon = per_reborn_in_fire
2501
+ required_missions = { per_our_religious_direction }
2502
+ position = 6
2503
+ provinces_to_highlight = {
2504
+ }
2505
+ trigger = {
2506
+ not_in_mission_preview_mode = { key = PER }
2507
+ religion = zoroastrian
2508
+ NOT = { num_of_rebel_armies = 1 }
2509
+ NOT = { num_of_rebel_controlled_provinces = 1 }
2510
+ }
2511
+ effect = {
2512
+ custom_tooltip = per_reborn_in_fire_bt
2513
+ hidden_effect = {
2514
+ if = {
2515
+ limit = { NOT = { any_owned_province = { religion = zoroastrian is_reformation_center = yes } } }
2516
+ capital_scope = {
2517
+ if = {
2518
+ limit = { NOT = { religion = zoroastrian } }
2519
+ change_religion = zoroastrian
2520
+ }
2521
+ add_reform_center = zoroastrian
2522
+ }
2523
+ }
2524
+ }
2525
+ simple_dynamic_effect = {
2526
+ first_custom_tooltip = per_reborn_in_fire_at
2527
+ first_limit = "has_country_flag = zoroastrian_civil_war_aftermath"
2528
+ first_effect = "
2529
+ add_stability_or_adm_power_per_stab = { amount = 2 }
2530
+ change_estate_land_share = { estate = all share = -10 }
2531
+ "
2532
+ second_limit = "NOT = { has_country_flag = zoroastrian_civil_war_aftermath }"
2533
+ second_effect = "
2534
+ add_stability_or_adm_power = yes
2535
+ change_estate_land_share = { estate = all share = -5 }
2536
+ "
2537
+ }
2538
+ }
2539
+ }
2540
+ per_build_the_fire_temples = {
2541
+ icon = per_build_the_fire_temples
2542
+ required_missions = { per_reborn_in_fire }
2543
+ position = 7
2544
+ provinces_to_highlight = {
2545
+ NOT = { has_tax_building_trigger = yes }
2546
+ owned_by = root
2547
+ }
2548
+ trigger = {
2549
+ not_in_mission_preview_mode = { key = PER }
2550
+ num_of_owned_provinces_with = {
2551
+ has_tax_building_trigger = yes
2552
+ value = 30
2553
+ }
2554
+ }
2555
+ effect = {
2556
+ random_owned_province = {
2557
+ limit = {
2558
+ has_tax_building_trigger = yes
2559
+ }
2560
+ add_base_tax = 1
2561
+ type = random
2562
+ amount = 10
2563
+ }
2564
+ change_asha_vahishta = {
2565
+ value = 20
2566
+ }
2567
+ add_estate_loyalty = {
2568
+ estate = estate_church
2569
+ loyalty = 20
2570
+ }
2571
+ }
2572
+ }
2573
+ per_purify_the_holy_sites = {
2574
+ icon = per_purify_the_holy_sites
2575
+ required_missions = {
2576
+ per_build_the_fire_temples
2577
+ per_restore_the_avesta
2578
+ }
2579
+ position = 8
2580
+ provinces_to_highlight = {
2581
+ OR = {
2582
+ province_id = 2212
2583
+ province_id = 4430
2584
+ province_id = 4336
2585
+ province_id = 2221
2586
+ province_id = 2207
2587
+ province_id = 2235
2588
+ province_id = 2236
2589
+ province_id = 2218
2590
+ province_id = 441
2591
+ province_id = 2223
2592
+ }
2593
+ OR = {
2594
+ NOT = { religion = root }
2595
+ NOT = { owner = { religion = root } }
2596
+ }
2597
+ }
2598
+ trigger = {
2599
+ not_in_mission_preview_mode = { key = PER }
2600
+ calc_true_if = {
2601
+ all_province = {
2602
+ OR = {
2603
+ province_id = 2212
2604
+ province_id = 4430
2605
+ province_id = 4336
2606
+ province_id = 2221
2607
+ province_id = 2207
2608
+ province_id = 2235
2609
+ province_id = 2236
2610
+ province_id = 2218
2611
+ province_id = 441
2612
+ province_id = 2223
2613
+ }
2614
+ owner = { religion = root }
2615
+ religion = root
2616
+ }
2617
+ amount = 6
2618
+ }
2619
+ }
2620
+ effect = {
2621
+ change_asha_vahishta = {
2622
+ value = 25
2623
+ }
2624
+ remove_asha_vahishta_loss_from_missionaries = yes
2625
+ }
2626
+ }
2627
+ per_balance_the_three_flames = {
2628
+ icon = per_balance_the_three_flames
2629
+ required_missions = { per_purify_the_holy_sites }
2630
+ position = 9
2631
+ provinces_to_highlight = {
2632
+ }
2633
+ trigger = {
2634
+ not_in_mission_preview_mode = { key = PER }
2635
+ custom_trigger_tooltip = {
2636
+ tooltip = per_balance_the_three_flames_tt
2637
+ has_government_mechanic = the_three_royal_fires_mechanic
2638
+ }
2639
+ custom_trigger_tooltip = {
2640
+ tooltip = per_balance_the_three_flames_at
2641
+ check_variable = {
2642
+ which = the_three_royal_fires_counter
2643
+ value = 5
2644
+ }
2645
+ }
2646
+ custom_trigger_tooltip = {
2647
+ tooltip = per_balance_the_three_flames_bt
2648
+ check_variable = {
2649
+ which = adur_farnbag_interaction_counter
2650
+ value = 1
2651
+ }
2652
+ }
2653
+ custom_trigger_tooltip = {
2654
+ tooltip = per_balance_the_three_flames_ct
2655
+ check_variable = {
2656
+ which = adur_burzhen_mihr_interaction_counter
2657
+ value = 1
2658
+ }
2659
+ }
2660
+ custom_trigger_tooltip = {
2661
+ tooltip = per_balance_the_three_flames_dt
2662
+ check_variable = {
2663
+ which = adur_gushnasp_interaction_counter
2664
+ value = 1
2665
+ }
2666
+ }
2667
+ }
2668
+ effect = {
2669
+ upgrade_the_three_fire = yes
2670
+ add_stability_or_adm_power = yes
2671
+ }
2672
+ }
2673
+ }
2674
+ kok_persia_mission_zoroastrian_slot_4 = {
2675
+ slot = 4
2676
+ generic = no
2677
+ ai = yes
2678
+ potential_on_load = {
2679
+ has_dlc = "King of Kings"
2680
+ }
2681
+ potential = {
2682
+ NOT = { map_setup = map_setup_random }
2683
+ has_dlc = "King of Kings"
2684
+ or = {
2685
+ tag = PER
2686
+ tag = ERS
2687
+ }
2688
+ has_country_flag = per_zoroastrian_missions
2689
+ }
2690
+ has_country_shield = yes
2691
+ per_restore_the_avesta = {
2692
+ icon = per_restore_the_avesta
2693
+ required_missions = { per_reborn_in_fire }
2694
+ position = 7
2695
+ provinces_to_highlight = {
2696
+ }
2697
+ trigger = {
2698
+ not_in_mission_preview_mode = { key = PER }
2699
+ if = {
2700
+ limit = { has_estate = estate_church }
2701
+ num_of_estate_agendas_completed = {
2702
+ estate = estate_church
2703
+ value = 3
2704
+ }
2705
+ }
2706
+ else = {
2707
+ NOT = { has_estate = estate_church }
2708
+ }
2709
+ }
2710
+ effect = {
2711
+ if = {
2712
+ limit = { has_dlc = "Cradle of Civilization" }
2713
+ enable_propogate_religion_immunity = yes
2714
+ enable_propagate_religion_in_abrahamic_provinces = yes
2715
+ }
2716
+ else = {
2717
+ hidden_effect = {
2718
+ enable_propogate_religion_immunity = yes
2719
+ enable_propagate_religion_in_abrahamic_provinces = yes
2720
+ }
2721
+ }
2722
+ add_country_modifier = {
2723
+ name = per_restored_avesta
2724
+ duration = 9125
2725
+ }
2726
+ if = {
2727
+ limit = { is_core = 4430 }
2728
+ add_core = 4430
2729
+ }
2730
+ }
2731
+ }
2732
+ per_the_city_of_daman = {
2733
+ icon = per_the_city_of_daman
2734
+ required_missions = { per_restore_the_avesta }
2735
+ position = 9
2736
+ provinces_to_highlight = {
2737
+ province_id = 4430
2738
+ OR = {
2739
+ has_owner_religion = no
2740
+ owner = { NOT = { religion = root } }
2741
+ }
2742
+ }
2743
+ trigger = {
2744
+ not_in_mission_preview_mode = { key = PER }
2745
+ 4430 = {
2746
+ religion = root
2747
+ owner = {
2748
+ religion = root
2749
+ }
2750
+ }
2751
+ }
2752
+ effect = {
2753
+ remove_asha_vahishta_loss_from_force_conversion = yes
2754
+ add_mil_power = 100
2755
+ }
2756
+ }
2757
+ }
2758
+ kok_persia_mission_zoroastrian_slot_5 = {
2759
+ slot = 5
2760
+ generic = no
2761
+ ai = yes
2762
+ potential_on_load = {
2763
+ has_dlc = "King of Kings"
2764
+ }
2765
+ potential = {
2766
+ NOT = { map_setup = map_setup_random }
2767
+ has_dlc = "King of Kings"
2768
+ or = {
2769
+ tag = PER
2770
+ tag = ERS
2771
+ }
2772
+ has_country_flag = per_zoroastrian_missions
2773
+ }
2774
+ has_country_shield = yes
2775
+ per_muslim_integration = {
2776
+ icon = per_muslim_integration
2777
+ required_missions = { per_our_religious_direction }
2778
+ position = 6
2779
+ provinces_to_highlight = {
2780
+ }
2781
+ trigger = {
2782
+ not_in_mission_preview_mode = { key = PER }
2783
+ religion_group = zoroastrian_group
2784
+ OR = {
2785
+ NOT = { any_owned_province = { religion_group = muslim } }
2786
+ has_global_modifier_value = {
2787
+ which = tolerance_heathen
2788
+ value = 0
2789
+ }
2790
+ }
2791
+ estate_loyalty = {
2792
+ estate = estate_church
2793
+ loyalty = 60
2794
+ }
2795
+ }
2796
+ effect = {
2797
+ unlock_estate_privilege = {
2798
+ estate_privilege = estate_church_muslim_integration
2799
+ modifier_tooltip = estate_church_muslim_integration_tooltip
2800
+ effect_tooltip = "
2801
+ custom_tooltip = estate_church_muslim_integration_gt
2802
+ tooltip = {
2803
+ add_province_modifier = {
2804
+ name = estate_church_muslim_integration_mod
2805
+ duration = -1
2806
+ desc = UNTIL_REVOKED
2807
+ }
2808
+ }
2809
+ "
2810
+ }
2811
+ }
2812
+ }
2813
+ per_zoroastrian_community = {
2814
+ icon = per_zoroastrian_community
2815
+ required_missions = {
2816
+ per_muslim_integration
2817
+ per_restore_the_avesta
2818
+ }
2819
+ position = 8
2820
+ provinces_to_highlight = {
2821
+ }
2822
+ trigger = {
2823
+ not_in_mission_preview_mode = { key = PER }
2824
+ religion_group = zoroastrian_group
2825
+ is_defender_of_faith = yes
2826
+ calc_true_if = {
2827
+ desc = per_zoroastrian_community_tt
2828
+ amount = 15
2829
+ all_known_country = {
2830
+ religion_group = root
2831
+ }
2832
+ }
2833
+ }
2834
+ effect = {
2835
+ custom_tooltip = free_religious_diplomats_for_all_zoro_countries_tt
2836
+ hidden_effect = {
2837
+ set_global_flag = free_religious_diplomats_for_all_zoro_countries
2838
+ }
2839
+ }
2840
+ }
2841
+ per_an_asha_empire = {
2842
+ icon = per_an_asha_empire
2843
+ required_missions = {
2844
+ per_balance_the_three_flames
2845
+ per_the_city_of_daman
2846
+ per_zoroastrian_community
2847
+ }
2848
+ position = 10
2849
+ provinces_to_highlight = {
2850
+ OR = {
2851
+ AND = {
2852
+ owned_by = root
2853
+ NOT = { culture = root }
2854
+ }
2855
+ AND = {
2856
+ has_discovered = root
2857
+ is_capital = yes
2858
+ owner = { NOT = { primary_culture = root } }
2859
+ }
2860
+ }
2861
+ }
2862
+ trigger = {
2863
+ not_in_mission_preview_mode = { key = PER }
2864
+ OR = {
2865
+ num_of_converted_provinces = {
2866
+ amount = 50
2867
+ }
2868
+ num_of_forced_converted_countries = {
2869
+ amount = 15
2870
+ }
2871
+ AND = {
2872
+ religious_unity = 1
2873
+ total_development = 1000
2874
+ }
2875
+ }
2876
+ }
2877
+ effect = {
2878
+ enable_three_royal_fires_mana_generation = yes
2879
+ add_country_modifier = {
2880
+ name = per_culture_of_art
2881
+ duration = -1
2882
+ }
2883
+ }
2884
+ }
2885
+ }
2886
+
2887
+ # Dummy Branching
2888
+ kok_persia_mission_branching_slot_3 = {
2889
+ slot = 3
2890
+ generic = no
2891
+ ai = yes
2892
+ potential_on_load = { has_dlc = "King of Kings" }
2893
+ potential = {
2894
+ NOT = { map_setup = map_setup_random }
2895
+ has_dlc = "King of Kings"
2896
+ or = {
2897
+ tag = PER
2898
+ tag = ERS
2899
+ }
2900
+ NOT = {
2901
+ OR = {
2902
+ has_country_flag = per_shia_missions
2903
+ has_country_flag = per_sunni_missions
2904
+ has_country_flag = per_zoroastrian_missions
2905
+ }
2906
+ }
2907
+ }
2908
+ has_country_shield = yes
2909
+ per_branching_3_6 = {
2910
+ icon = mission_unknown_mission
2911
+ required_missions = { per_our_religious_direction }
2912
+ position = 6
2913
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
2914
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
2915
+ }
2916
+ per_branching_3_7 = {
2917
+ icon = mission_unknown_mission
2918
+ required_missions = { per_branching_3_6 }
2919
+ position = 7
2920
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
2921
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
2922
+ }
2923
+ per_branching_3_8 = {
2924
+ icon = mission_unknown_mission
2925
+ required_missions = { per_branching_3_7 }
2926
+ position = 8
2927
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
2928
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
2929
+ }
2930
+ per_branching_3_9 = {
2931
+ icon = mission_unknown_mission
2932
+ required_missions = { per_branching_3_8 }
2933
+ position = 9
2934
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
2935
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
2936
+ }
2937
+ }
2938
+ kok_persia_mission_branching_slot_4 = {
2939
+ slot = 4
2940
+ generic = no
2941
+ ai = yes
2942
+ potential_on_load = { has_dlc = "King of Kings" }
2943
+ potential = {
2944
+ NOT = { map_setup = map_setup_random }
2945
+ has_dlc = "King of Kings"
2946
+ or = {
2947
+ tag = PER
2948
+ tag = ERS
2949
+ }
2950
+ NOT = {
2951
+ OR = {
2952
+ has_country_flag = per_shia_missions
2953
+ has_country_flag = per_sunni_missions
2954
+ has_country_flag = per_zoroastrian_missions
2955
+ }
2956
+ }
2957
+ }
2958
+ has_country_shield = yes
2959
+ per_branching_4_7 = {
2960
+ icon = mission_unknown_mission
2961
+ required_missions = { per_branching_3_6 per_branching_5_6 }
2962
+ position = 7
2963
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
2964
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
2965
+ }
2966
+ per_branching_4_9 = {
2967
+ icon = mission_unknown_mission
2968
+ required_missions = { per_branching_4_7 }
2969
+ position = 9
2970
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
2971
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
2972
+ }
2973
+ }
2974
+ kok_persia_mission_branching_slot_5 = {
2975
+ slot = 5
2976
+ generic = no
2977
+ ai = yes
2978
+ potential_on_load = { has_dlc = "King of Kings" }
2979
+ potential = {
2980
+ NOT = { map_setup = map_setup_random }
2981
+ has_dlc = "King of Kings"
2982
+ or = {
2983
+ tag = PER
2984
+ tag = ERS
2985
+ }
2986
+ NOT = {
2987
+ OR = {
2988
+ has_country_flag = per_shia_missions
2989
+ has_country_flag = per_sunni_missions
2990
+ has_country_flag = per_zoroastrian_missions
2991
+ }
2992
+ }
2993
+ }
2994
+ has_country_shield = yes
2995
+ per_branching_5_6 = {
2996
+ icon = mission_unknown_mission
2997
+ required_missions = { per_our_religious_direction }
2998
+ position = 6
2999
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
3000
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
3001
+ }
3002
+ per_branching_5_8 = {
3003
+ icon = mission_unknown_mission
3004
+ required_missions = { per_branching_5_6 }
3005
+ position = 8
3006
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
3007
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
3008
+ }
3009
+ per_branching_5_10 = {
3010
+ icon = mission_unknown_mission
3011
+ required_missions = { per_branching_3_9 per_branching_4_9 per_branching_5_8 }
3012
+ position = 10
3013
+ trigger = { custom_trigger_tooltip = { tooltip = PER_this_is_a_branching_mission always = no } }
3014
+ effect = { custom_tooltip = PER_this_is_a_branching_mission }
3015
+ }
3016
+ }
3017
+ ###########################################
3018
+ kok_persia_military_mission_slot_3 = {
3019
+ slot = 3
3020
+ generic = no
3021
+ ai = yes
3022
+ potential_on_load = {
3023
+ has_dlc = "King of Kings"
3024
+ }
3025
+ potential = {
3026
+ NOT = { map_setup = map_setup_random }
3027
+ has_dlc = "King of Kings"
3028
+ or = {
3029
+ tag = PER
3030
+ tag = ERS
3031
+ }
3032
+ }
3033
+ has_country_shield = yes
3034
+ per_establish_the_qurchi = {
3035
+ icon = per_establish_the_qurchi
3036
+ required_missions = { per_recruit_the_qizilbash }
3037
+ position = 10
3038
+ provinces_to_highlight = {
3039
+ }
3040
+ trigger = {
3041
+ has_high_monthly_monarch_power = { type = mil }
3042
+ if = {
3043
+ limit = { has_dlc = "Cradle of Civilization" }
3044
+ num_of_regiments_at_full_drill = 40
3045
+ army_professionalism = 0.4
3046
+ }
3047
+ else = {
3048
+ army_size = 120
3049
+ has_global_modifier_value = {
3050
+ which = infantry_power
3051
+ value = 0.25
3052
+ }
3053
+ }
3054
+ }
3055
+ effect = {
3056
+ unlock_estate_privilege = {
3057
+ estate_privilege = estate_nobles_qurchi_service
3058
+ modifier_tooltip = estate_nobles_qurchi_service_tooltip
3059
+ effect_tooltip = "
3060
+ scaling_with_loyalty_privilege_tooltip = {
3061
+ estate_privilege = estate_nobles_qurchi_service
3062
+ }
3063
+ "
3064
+ }
3065
+ unlock_estate_privilege = { estate_privilege = estate_ghulams_qurchi_service }
3066
+ unlock_estate_privilege = { estate_privilege = estate_qizilbash_qurchi_service }
3067
+ }
3068
+ }
3069
+ }
3070
+
3071
+ kok_persia_culture_mission_slot_1 = {
3072
+ slot = 1
3073
+ generic = no
3074
+ ai = yes
3075
+ potential_on_load = {
3076
+ has_dlc = "King of Kings"
3077
+ }
3078
+ potential = {
3079
+ NOT = { map_setup = map_setup_random }
3080
+ has_dlc = "King of Kings"
3081
+ or = {
3082
+ tag = PER
3083
+ tag = ERS
3084
+ }
3085
+ }
3086
+ has_country_shield = yes
3087
+ per_the_tailors_of_persia = {
3088
+ icon = mission_gujarati_textiles
3089
+ required_missions = { per_construct_great_buildings }
3090
+ position = 13
3091
+ provinces_to_highlight = {
3092
+ OR = {
3093
+ trade_goods = silk
3094
+ trade_goods = cloth
3095
+ trade_goods = dyes
3096
+ }
3097
+ owned_by = root
3098
+ NOT = { has_production_building_trigger = yes }
3099
+ }
3100
+ trigger = {
3101
+ num_of_owned_provinces_with = {
3102
+ OR = {
3103
+ trade_goods = silk
3104
+ trade_goods = cloth
3105
+ trade_goods = dyes
3106
+ }
3107
+ has_production_building_trigger = yes
3108
+ value = 20
3109
+ }
3110
+ }
3111
+ effect = {
3112
+ add_treasury = 600
3113
+ if = {
3114
+ limit = { has_estate = estate_burghers NOT = { has_unlocked_estate_privilege = { estate_privilege = estate_burghers_persian_rugs } } }
3115
+ unlock_estate_privilege = {
3116
+ estate_privilege = estate_burghers_persian_rugs
3117
+ modifier_tooltip = estate_burghers_persian_rugs_tooltip
3118
+ effect_tooltip = "
3119
+ custom_tooltip = estate_burghers_persian_rugs_tt
3120
+ add_province_modifier = {
3121
+ name = estate_burghers_persian_rugs_modifier
3122
+ duration = -1
3123
+ }
3124
+ "
3125
+ }
3126
+ }
3127
+ #random_owned_province = {
3128
+ # limit = {
3129
+ # OR = {
3130
+ # trade_goods = silk
3131
+ # trade_goods = cloth
3132
+ # trade_goods = dyes
3133
+ # }
3134
+ # has_production_building_trigger = yes
3135
+ # }
3136
+ # add_base_production = 1
3137
+ # type = random
3138
+ # amount = 20
3139
+ #}
3140
+ }
3141
+ }
3142
+ per_the_persian_rug = {
3143
+ icon = mission_finest_carpets
3144
+ required_missions = { per_the_tailors_of_persia }
3145
+ position = 14
3146
+ provinces_to_highlight = {
3147
+ has_discovered = root
3148
+ OR = {
3149
+ trade_goods = silk
3150
+ trade_goods = cloth
3151
+ trade_goods = dyes
3152
+ }
3153
+ }
3154
+ trigger = {
3155
+ OR = {
3156
+ production_leader = { trade_goods = silk }
3157
+ trade_goods_produced_amount = { trade_goods = silk amount = 20 }
3158
+ }
3159
+ OR = {
3160
+ production_leader = { trade_goods = cloth }
3161
+ trade_goods_produced_amount = { trade_goods = cloth amount = 20 }
3162
+ }
3163
+ OR = {
3164
+ production_leader = { trade_goods = dyes }
3165
+ trade_goods_produced_amount = { trade_goods = dyes amount = 20 }
3166
+ }
3167
+ }
3168
+ effect = {
3169
+ country_event_with_effect_insight = {
3170
+ id = flavor_per.19
3171
+ effect = "custom_tooltip = per_the_persian_rug_at"
3172
+ }
3173
+ }
3174
+ }
3175
+ }
3176
+ kok_persia_culture_mission_slot_2 = {
3177
+ slot = 2
3178
+ generic = no
3179
+ ai = yes
3180
+ potential_on_load = {
3181
+ has_dlc = "King of Kings"
3182
+ }
3183
+ potential = {
3184
+ NOT = { map_setup = map_setup_random }
3185
+ has_dlc = "King of Kings"
3186
+ or = {
3187
+ tag = PER
3188
+ tag = ERS
3189
+ }
3190
+ }
3191
+ has_country_shield = yes
3192
+ per_construct_great_buildings = {
3193
+ icon = mission_into_persia_2
3194
+ required_missions = { per_shahanshahs_coffers }
3195
+ position = 12
3196
+ provinces_to_highlight = {
3197
+ OR = {
3198
+ region = persia_region
3199
+ region = khorasan_region
3200
+ }
3201
+ owned_by = root
3202
+ NOT = { num_of_buildings_in_province = 1 }
3203
+ }
3204
+ trigger = {
3205
+ num_of_owned_provinces_with = {
3206
+ OR = {
3207
+ region = persia_region
3208
+ region = khorasan_region
3209
+ }
3210
+ num_of_buildings_in_province = 1
3211
+ value = 30
3212
+ }
3213
+ }
3214
+ effect = {
3215
+ if = {
3216
+ limit = { has_estate = estate_burghers NOT = { has_unlocked_estate_privilege = { estate_privilege = estate_burghers_great_works_of_iran } } }
3217
+ add_estate_loyalty = {
3218
+ estate = estate_burghers
3219
+ loyalty = 20
3220
+ }
3221
+ unlock_estate_privilege = {
3222
+ estate_privilege = estate_burghers_great_works_of_iran
3223
+ modifier_tooltip = estate_burghers_great_works_of_iran_tooltip
3224
+ effect_tooltip = "
3225
+ change_estate_land_share = {
3226
+ estate = estate_burghers
3227
+ share = 5
3228
+ }
3229
+ custom_tooltip = estate_burghers_great_works_of_iran_tt
3230
+ "
3231
+ }
3232
+ }
3233
+ else = {
3234
+ hidden_effect = {
3235
+ unlock_estate_privilege = {
3236
+ estate_privilege = estate_burghers_great_works_of_iran
3237
+ }
3238
+ }
3239
+ add_mercantilism = 5
3240
+ add_treasury = 500
3241
+ }
3242
+ }
3243
+ }
3244
+ per_compete_with_hormuz = {
3245
+ icon = mission_dominate_trade_in_aden
3246
+ required_missions = { per_construct_great_buildings }
3247
+ position = 13
3248
+ provinces_to_highlight = {
3249
+ OR = {
3250
+ AND = {
3251
+ province_id = 431
3252
+ OR = {
3253
+ NOT = { is_core = root }
3254
+ NOT = { owned_by = root }
3255
+ }
3256
+ }
3257
+ AND = {
3258
+ province_id = 1334
3259
+ NOT = { trade_share = { country = root share = 75 } }
3260
+ }
3261
+ }
3262
+ }
3263
+ trigger = {
3264
+ owns_core_province = 431
3265
+ 1334 = {
3266
+ trade_share = {
3267
+ country = root
3268
+ share = 75
3269
+ }
3270
+ }
3271
+ }
3272
+ effect = {
3273
+ add_government_power = {
3274
+ mechanic_type = persian_influence_mechanic
3275
+ power_type = persian_influence
3276
+ value = 25
3277
+ }
3278
+ 431 = {
3279
+ add_base_tax = 4
3280
+ add_base_production = 4
3281
+ add_base_manpower = 3
3282
+ add_province_modifier = {
3283
+ name = "dominant_trade_hub"
3284
+ duration = -1
3285
+ }
3286
+ }
3287
+ }
3288
+ }
3289
+ per_engage_in_indian_trade = {
3290
+ icon = mission_dominate_trade_in_bengal
3291
+ required_missions = { per_compete_with_hormuz }
3292
+ position = 14
3293
+ provinces_to_highlight = {
3294
+ is_indian_trade_node_province = yes
3295
+ OR = { NOT = { has_trader = root } NOT = { trade_share = { country = root share = 10 } } }
3296
+ }
3297
+ trigger = {
3298
+ num_ships_protecting_trade = 25
3299
+ OR = {
3300
+ 504 = { has_trader = ROOT trade_share = { country = root share = 10 } }
3301
+ 507 = { has_trader = ROOT trade_share = { country = root share = 10 } }
3302
+ 524 = { has_trader = ROOT trade_share = { country = root share = 10 } }
3303
+ 1343 = { has_trader = ROOT trade_share = { country = root share = 10 } }
3304
+ 1948 = { has_trader = ROOT trade_share = { country = root share = 10 } }
3305
+ 1340 = { has_trader = ROOT trade_share = { country = root share = 10 } }
3306
+ }
3307
+ }
3308
+ effect = {
3309
+ custom_tooltip = aju_indian_trade_ct
3310
+ hidden_effect = {
3311
+ 504 = { every_trade_node_member_country = { limit = { 504 = { trade_share = { country = PREV share = 5 } } NOT = { tag = ROOT } } country_event = { id = flavor_per.26 } } }
3312
+ 507 = { every_trade_node_member_country = { limit = { 507 = { trade_share = { country = PREV share = 5 } } NOT = { tag = ROOT } } country_event = { id = flavor_per.26 } } }
3313
+ 524 = { every_trade_node_member_country = { limit = { 524 = { trade_share = { country = PREV share = 5 } } NOT = { tag = ROOT } } country_event = { id = flavor_per.26 } } }
3314
+ 1343 = { every_trade_node_member_country = { limit = { 1343 = { trade_share = { country = PREV share = 5 } } NOT = { tag = ROOT } } country_event = { id = flavor_per.26 } } }
3315
+ 1948 = { every_trade_node_member_country = { limit = { 1948 = { trade_share = { country = PREV share = 5 } } NOT = { tag = ROOT } } country_event = { id = flavor_per.26 } } }
3316
+ 1340 = { every_trade_node_member_country = { limit = { 1340 = { trade_share = { country = PREV share = 5 } } NOT = { tag = ROOT } } country_event = { id = flavor_per.26 } } }
3317
+ }
3318
+ add_years_of_trade_income = {
3319
+ years = 4
3320
+ custom_tooltip = zan_settle_trade_posts_ct
3321
+ }
3322
+ }
3323
+ }
3324
+ per_riches_of_asia = {
3325
+ icon = mission_riches_of_golconda
3326
+ required_missions = {
3327
+ per_the_persian_rug
3328
+ per_engage_in_indian_trade
3329
+ per_sino_persians_relations
3330
+ }
3331
+ position = 15
3332
+ provinces_to_highlight = {
3333
+ }
3334
+ trigger = {
3335
+ monthly_income = 200
3336
+ trade_income_percentage = 0.5
3337
+ calc_true_if = {
3338
+ trading_bonus = { trade_goods = silk value = yes }
3339
+ trading_bonus = { trade_goods = cloth value = yes }
3340
+ trading_bonus = { trade_goods = dyes value = yes }
3341
+ trading_bonus = { trade_goods = coffee value = yes }
3342
+ trading_bonus = { trade_goods = cotton value = yes }
3343
+ trading_bonus = { trade_goods = gems value = yes }
3344
+ trading_bonus = { trade_goods = wool value = yes }
3345
+ amount = 3
3346
+ }
3347
+ }
3348
+ effect = {
3349
+ country_event_with_insight = {
3350
+ id = flavor_per.24
3351
+ insight_tooltip = INSIGHT_JUST_TOOLTIP
3352
+ effect_tooltip = "
3353
+ add_prestige_or_monarch_power = { amount = 100 }
3354
+ change_price = {
3355
+ trade_goods = silk
3356
+ key = PERSIAN_SILK
3357
+ value = 0.25
3358
+ duration = -1
3359
+ }
3360
+ change_price = {
3361
+ trade_goods = dyes
3362
+ key = PERSIAN_DYES
3363
+ value = 0.5
3364
+ duration = -1
3365
+ }
3366
+ change_price = {
3367
+ trade_goods = cloth
3368
+ key = PERSIAN_CLOTH
3369
+ value = 0.35
3370
+ duration = -1
3371
+ }
3372
+ "
3373
+ }
3374
+ }
3375
+ }
3376
+ }
3377
+ kok_persia_culture_mission_slot_3 = {
3378
+ slot = 3
3379
+ generic = no
3380
+ ai = yes
3381
+ potential_on_load = {
3382
+ has_dlc = "King of Kings"
3383
+ }
3384
+ potential = {
3385
+ NOT = { map_setup = map_setup_random }
3386
+ has_dlc = "King of Kings"
3387
+ or = {
3388
+ tag = PER
3389
+ tag = ERS
3390
+ }
3391
+ }
3392
+ has_country_shield = yes
3393
+ per_shahanshahs_coffers = {
3394
+ icon = mission_war_chest
3395
+ required_missions = { }
3396
+ position = 11
3397
+ provinces_to_highlight = {
3398
+ }
3399
+ trigger = {
3400
+ OR = {
3401
+ treasury = 4000
3402
+ num_of_loans = 10
3403
+ }
3404
+ is_in_deficit = no
3405
+ NOT = { inflation = 2 }
3406
+ }
3407
+ effect = {
3408
+ add_stability_or_adm_power = yes
3409
+ add_country_modifier = {
3410
+ name = per_investment_into_persia
3411
+ duration = 9125
3412
+ }
3413
+ }
3414
+ }
3415
+ per_the_silk_road = {
3416
+ icon = mission_silk_road
3417
+ required_missions = { per_construct_great_buildings }
3418
+ position = 13
3419
+ provinces_to_highlight = {
3420
+ province_id = 454
3421
+ NOT = {
3422
+ trade_share = {
3423
+ country = root
3424
+ share = 50
3425
+ }
3426
+ }
3427
+ }
3428
+ trigger = {
3429
+ 454 = {
3430
+ trade_share = {
3431
+ country = root
3432
+ share = 50
3433
+ }
3434
+ }
3435
+ }
3436
+ effect = {
3437
+ if = {
3438
+ limit = { has_dlc = "Cradle of Civilization" }
3439
+ enable_trading_policy = { policy = maximize_profit_upgraded }
3440
+ enable_trading_policy = { policy = hostile_trading_upgraded }
3441
+ enable_trading_policy = { policy = improve_inland_routes_upgraded }
3442
+ enable_trading_policy = { policy = establish_communities_upgraded }
3443
+ hidden_effect = {
3444
+ disable_trading_policy = { policy = maximize_profit }
3445
+ disable_trading_policy = { policy = hostile_trading }
3446
+ disable_trading_policy = { policy = improve_inland_routes }
3447
+ disable_trading_policy = { policy = establish_communities }
3448
+ }
3449
+ }
3450
+ else = {
3451
+ add_mercantilism_or_monarch_power = { amount = 5 }
3452
+ define_advisor = {
3453
+ type = trader
3454
+ discount = yes
3455
+ skill = 3
3456
+ }
3457
+ }
3458
+ }
3459
+ }
3460
+ per_sino_persians_relations = {
3461
+ icon = per_sino_persians_relations
3462
+ required_missions = { per_the_silk_road }
3463
+ position = 14
3464
+ provinces_to_highlight = {
3465
+ has_discovered = root
3466
+ OR = {
3467
+ province_id = 1816
3468
+ province_id = 1821
3469
+ province_id = 667
3470
+ }
3471
+ }
3472
+ trigger = {
3473
+ OR = {
3474
+ any_ally = {
3475
+ owns = 1816
3476
+ owns = 1821
3477
+ owns = 667
3478
+ has_opinion = {
3479
+ who = root
3480
+ value = 150
3481
+ }
3482
+ }
3483
+ AND = {
3484
+ owns = 1816
3485
+ owns = 1821
3486
+ owns = 667
3487
+ }
3488
+ }
3489
+ }
3490
+ effect = {
3491
+ simple_dynamic_effect = {
3492
+ first_custom_tooltip = per_sino_persians_relations_at
3493
+ first_limit = "
3494
+ any_ally = {
3495
+ owns = 1816
3496
+ owns = 1821
3497
+ owns = 667
3498
+ has_opinion = {
3499
+ who = root
3500
+ value = 150
3501
+ }
3502
+ }
3503
+ "
3504
+ first_effect = "
3505
+ tooltip = {
3506
+ country_event = { id = flavor_per.27 }
3507
+ custom_tooltip = EVENT_INSIGHT_INTRO
3508
+ custom_tooltip = per_sino_persians_relations_bt
3509
+ }
3510
+ "
3511
+ second_limit = "
3512
+ owns = 1816
3513
+ owns = 1821
3514
+ owns = 667
3515
+ "
3516
+ second_effect = "
3517
+ add_adm_power = 100
3518
+ add_dip_power = 100
3519
+ add_mil_power = 100
3520
+ "
3521
+ }
3522
+ #dynamic effects + country events = never works
3523
+ hidden_effect = {
3524
+ if = {
3525
+ limit = {
3526
+ any_ally = {
3527
+ owns = 1816
3528
+ owns = 1821
3529
+ owns = 667
3530
+ has_opinion = {
3531
+ who = root
3532
+ value = 150
3533
+ }
3534
+ }
3535
+ }
3536
+ country_event = {
3537
+ id = flavor_per.27
3538
+ }
3539
+ }
3540
+ }
3541
+ }
3542
+ }
3543
+ }
3544
+ kok_persia_culture_mission_slot_4 = {
3545
+ slot = 4
3546
+ generic = no
3547
+ ai = yes
3548
+ potential_on_load = {
3549
+ has_dlc = "King of Kings"
3550
+ }
3551
+ potential = {
3552
+ NOT = { map_setup = map_setup_random }
3553
+ has_dlc = "King of Kings"
3554
+ or = {
3555
+ tag = PER
3556
+ tag = ERS
3557
+ }
3558
+ }
3559
+ has_country_shield = yes
3560
+ per_center_of_culture = {
3561
+ icon = mission_central_asian_city
3562
+ required_missions = { per_shahanshahs_coffers }
3563
+ position = 12
3564
+ provinces_to_highlight = {
3565
+ is_capital_of = root
3566
+ NOT = { development = 25 }
3567
+ }
3568
+ trigger = {
3569
+ capital_scope = {
3570
+ development = 25
3571
+ }
3572
+ }
3573
+ effect = {
3574
+ add_government_power = {
3575
+ mechanic_type = persian_influence_mechanic
3576
+ power_type = persian_influence
3577
+ value = 20
3578
+ }
3579
+ capital_scope = {
3580
+ add_province_modifier = {
3581
+ name = per_center_of_culture
3582
+ duration = -1
3583
+ }
3584
+ }
3585
+ }
3586
+ }
3587
+ per_checks_and_balance = {
3588
+ icon = mission_muslim_administrators
3589
+ required_missions = { per_center_of_culture }
3590
+ position = 13
3591
+ provinces_to_highlight = {
3592
+ }
3593
+ trigger = {
3594
+ stability = 1
3595
+ custom_trigger_tooltip = {
3596
+ tooltip = per_checks_and_balance_tt #Two ?Yestates?! have at least ?Y60 influence?!, the other has at least ?Y40 influence?!.
3597
+ calc_true_if = {
3598
+ OR = { NOT = { has_estate = estate_burghers } estate_influence = { estate = estate_burghers influence = 40 } }
3599
+ OR = { NOT = { has_estate = estate_church } estate_influence = { estate = estate_church influence = 40 } }
3600
+ OR = { NOT = { has_estate = estate_nobles } estate_influence = { estate = estate_nobles influence = 40 } }
3601
+ OR = { NOT = { has_estate = estate_qizilbash } estate_influence = { estate = estate_qizilbash influence = 40 } }
3602
+ OR = { NOT = { has_estate = estate_ghulams } estate_influence = { estate = estate_ghulams influence = 40 } }
3603
+ OR = { NOT = { has_estate = estate_nomadic_tribes } estate_influence = { estate = estate_nomadic_tribes influence = 40 } }
3604
+ amount = 6
3605
+ }
3606
+ if = {
3607
+ limit = { has_estate = estate_qizilbash }
3608
+ if = {
3609
+ limit = { has_estate = estate_ghulams }
3610
+ if = {
3611
+ limit = { has_estate = estate_nomadic_tribes }
3612
+ calc_true_if = {
3613
+ estate_influence = { estate = estate_burghers influence = 60 }
3614
+ estate_influence = { estate = estate_church influence = 60 }
3615
+ estate_influence = { estate = estate_nobles influence = 60 }
3616
+ estate_influence = { estate = estate_qizilbash influence = 60 }
3617
+ estate_influence = { estate = estate_ghulams influence = 60 }
3618
+ estate_influence = { estate = estate_nomadic_tribes influence = 60 }
3619
+ amount = 2
3620
+ }
3621
+ }
3622
+ else = {
3623
+ calc_true_if = {
3624
+ estate_influence = { estate = estate_burghers influence = 60 }
3625
+ estate_influence = { estate = estate_church influence = 60 }
3626
+ estate_influence = { estate = estate_nobles influence = 60 }
3627
+ estate_influence = { estate = estate_qizilbash influence = 60 }
3628
+ estate_influence = { estate = estate_ghulams influence = 60 }
3629
+ amount = 2
3630
+ }
3631
+ }
3632
+ }
3633
+ else = {
3634
+ if = {
3635
+ limit = { has_estate = estate_nomadic_tribes }
3636
+ calc_true_if = {
3637
+ estate_influence = { estate = estate_burghers influence = 60 }
3638
+ estate_influence = { estate = estate_church influence = 60 }
3639
+ estate_influence = { estate = estate_nobles influence = 60 }
3640
+ estate_influence = { estate = estate_qizilbash influence = 60 }
3641
+ estate_influence = { estate = estate_nomadic_tribes influence = 60 }
3642
+ amount = 2
3643
+ }
3644
+ }
3645
+ else = {
3646
+ calc_true_if = {
3647
+ estate_influence = { estate = estate_burghers influence = 60 }
3648
+ estate_influence = { estate = estate_church influence = 60 }
3649
+ estate_influence = { estate = estate_nobles influence = 60 }
3650
+ estate_influence = { estate = estate_qizilbash influence = 60 }
3651
+ amount = 2
3652
+ }
3653
+ }
3654
+ }
3655
+ }
3656
+ else = {
3657
+ if = {
3658
+ limit = { has_estate = estate_ghulams }
3659
+ if = {
3660
+ limit = { has_estate = estate_nomadic_tribes }
3661
+ calc_true_if = {
3662
+ estate_influence = { estate = estate_burghers influence = 60 }
3663
+ estate_influence = { estate = estate_church influence = 60 }
3664
+ estate_influence = { estate = estate_nobles influence = 60 }
3665
+ estate_influence = { estate = estate_ghulams influence = 60 }
3666
+ estate_influence = { estate = estate_nomadic_tribes influence = 60 }
3667
+ amount = 2
3668
+ }
3669
+ }
3670
+ else = {
3671
+ calc_true_if = {
3672
+ estate_influence = { estate = estate_burghers influence = 60 }
3673
+ estate_influence = { estate = estate_church influence = 60 }
3674
+ estate_influence = { estate = estate_nobles influence = 60 }
3675
+ estate_influence = { estate = estate_ghulams influence = 60 }
3676
+ amount = 2
3677
+ }
3678
+ }
3679
+ }
3680
+ else = {
3681
+ if = {
3682
+ limit = { has_estate = estate_nomadic_tribes }
3683
+ calc_true_if = {
3684
+ estate_influence = { estate = estate_burghers influence = 60 }
3685
+ estate_influence = { estate = estate_church influence = 60 }
3686
+ estate_influence = { estate = estate_nobles influence = 60 }
3687
+ estate_influence = { estate = estate_nomadic_tribes influence = 60 }
3688
+ amount = 2
3689
+ }
3690
+ }
3691
+ else = {
3692
+ calc_true_if = {
3693
+ estate_influence = { estate = estate_burghers influence = 60 }
3694
+ estate_influence = { estate = estate_church influence = 60 }
3695
+ estate_influence = { estate = estate_nobles influence = 60 }
3696
+ amount = 2
3697
+ }
3698
+ }
3699
+ }
3700
+ }
3701
+ }
3702
+ OR = {
3703
+ has_estate_privilege = estate_church_independent_inquisition
3704
+ has_estate_privilege = estate_burghers_commercial_board_of_advice
3705
+ has_estate_privilege = estate_nobles_advisors
3706
+ has_estate_privilege = estate_rajput_advisor
3707
+ has_estate_privilege = estate_maratha_advisor
3708
+ has_estate_privilege = estate_vaisyas_advisor
3709
+ has_estate_privilege = estate_ghulams_advisor
3710
+ }
3711
+ }
3712
+ effect = {
3713
+ unlock_decision = {
3714
+ type = grand_vizier_selection
3715
+ effect_tooltip = "
3716
+ adm_power_cost = 50
3717
+ dip_power_cost = 50
3718
+ mil_power_cost = 50
3719
+ custom_tooltip = grand_vizier_selection_tt
3720
+ hidden_effect = {
3721
+ country_event = {
3722
+ id = estate_privileges_and_agendas_events.8
3723
+ }
3724
+ }
3725
+ "
3726
+ }
3727
+ add_legitimacy_or_mil_power = {
3728
+ amount = 10
3729
+ republican_tradition = 3
3730
+ }
3731
+ }
3732
+ }
3733
+ per_enlightened_rule = {
3734
+ icon = per_enlightened_rule
3735
+ required_missions = {
3736
+ per_checks_and_balance
3737
+ per_houses_of_knowledge
3738
+ }
3739
+ position = 15
3740
+ provinces_to_highlight = {
3741
+ }
3742
+ trigger = {
3743
+ custom_trigger_tooltip = {
3744
+ tooltip = per_enlightened_rule_tt
3745
+ OR = {
3746
+ has_country_flag = per_shia_missions
3747
+ has_country_flag = per_sunni_missions
3748
+ has_country_flag = per_zoroastrian_missions
3749
+ }
3750
+ not_in_mission_preview_mode = { key = PER }
3751
+ }
3752
+ OR = {
3753
+ absolutism = 100
3754
+ AND = {
3755
+ has_medium_monthly_monarch_power = { type = adm }
3756
+ has_medium_monthly_monarch_power = { type = dip }
3757
+ has_medium_monthly_monarch_power = { type = mil }
3758
+ has_final_tier_reforms_trigger = yes
3759
+ }
3760
+ }
3761
+ }
3762
+ effect = {
3763
+ unlock_diplomatic_action = {
3764
+ type = send_royal_ambassador
3765
+ custom_tooltip = send_royal_ambassador_tt
3766
+ }
3767
+ }
3768
+ }
3769
+ }
3770
+ kok_persia_culture_mission_slot_5 = {
3771
+ slot = 5
3772
+ generic = no
3773
+ ai = yes
3774
+ potential_on_load = {
3775
+ has_dlc = "King of Kings"
3776
+ }
3777
+ potential = {
3778
+ NOT = { map_setup = map_setup_random }
3779
+ has_dlc = "King of Kings"
3780
+ or = {
3781
+ tag = PER
3782
+ tag = ERS
3783
+ }
3784
+ }
3785
+ has_country_shield = yes
3786
+ per_cultured_court = {
3787
+ icon = mission_dhimmi
3788
+ required_missions = { per_center_of_culture }
3789
+ position = 13
3790
+ provinces_to_highlight = {
3791
+ }
3792
+ trigger = {
3793
+ ruler_culture = root
3794
+ if = {
3795
+ limit = { has_heir = yes }
3796
+ heir_culture = root
3797
+ }
3798
+ has_adm_advisor_3 = yes
3799
+ has_dip_advisor_3 = yes
3800
+ has_mil_advisor_3 = yes
3801
+ is_in_deficit = no
3802
+ NOT = { corruption = 1 }
3803
+ }
3804
+ effect = {
3805
+ reduce_hunting_accident_likelihood = yes
3806
+ }
3807
+ }
3808
+ per_houses_of_knowledge = {
3809
+ icon = qara_qoyunlu_maragheh_observatory
3810
+ required_missions = { per_cultured_court }
3811
+ position = 14
3812
+ provinces_to_highlight = {
3813
+ owned_by = root
3814
+ NOT = { has_building = university }
3815
+ }
3816
+ trigger = {
3817
+ is_lacking_institutions = no
3818
+ num_of_owned_provinces_with = {
3819
+ OR = {
3820
+ has_building = university
3821
+ base_tax = 12
3822
+ }
3823
+ value = 25
3824
+ }
3825
+ }
3826
+ effect = {
3827
+ remove_comet_sighted_events = yes
3828
+ remove_plague_events = yes
3829
+ remove_sick_heir_events = yes
3830
+ }
3831
+ }
3832
+ }
missions/KoK_Qara_Qoyunlu_Missions.txt ADDED
@@ -0,0 +1,2269 @@
1
+ qara_qoyunlu_first = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ tag = QAR
10
+ NOT = { map_setup = map_setup_random }
11
+ has_dlc = "King of Kings"
12
+ }
13
+ has_country_shield = yes
14
+
15
+ qara_qoyunlu_emirs_mesopotamia = {
16
+ icon = mission_fatimid_caliphate
17
+ required_missions = { }
18
+ position = 1
19
+
20
+ trigger = {
21
+ OR = {
22
+ crown_land_share = 40
23
+ custom_trigger_tooltip = {
24
+ has_country_flag = turkoman_abolished_privilege_flag
25
+ tooltip = turkoman_abolished_privilege_event_tt
26
+ }
27
+ }
28
+ if = {
29
+ limit = {
30
+ has_estate = estate_nobles
31
+ }
32
+ OR = {
33
+ num_of_estate_privileges = {
34
+ estate = estate_nobles
35
+ value = 5
36
+ }
37
+ num_of_estate_agendas_completed = {
38
+ estate = estate_nobles
39
+ value = 2
40
+ }
41
+ }
42
+ estate_loyalty = {
43
+ estate = estate_nobles
44
+ loyalty = 60
45
+ }
46
+ }
47
+ }
48
+
49
+ effect = {
50
+ custom_tooltip = turkmen_emirs_of_baghdad_remove_tt
51
+ basra_area = {
52
+ limit = {
53
+ NOT = { is_core = ROOT }
54
+ NOT = { is_permanent_claim = ROOT }
55
+ }
56
+ add_permanent_claim = ROOT
57
+ }
58
+ khuzestan_area = {
59
+ limit = {
60
+ NOT = { is_core = ROOT }
61
+ NOT = { is_permanent_claim = ROOT }
62
+ }
63
+ add_permanent_claim = ROOT
64
+ }
65
+ hidden_effect = {
66
+ remove_estate_privilege = estate_nobles_emirs_of_baghdad
67
+ every_owned_province = {
68
+ limit = {
69
+ OR = {
70
+ area = iraq_arabi_area
71
+ area = basra_area
72
+ area = al_jazira_area
73
+ }
74
+ }
75
+ add_local_autonomy = -100
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ qara_qoyunlu_custodian_of_baghdad = {
82
+ icon = mission_into_persia_1
83
+ required_missions = { qara_qoyunlu_emirs_mesopotamia }
84
+ position = 2
85
+
86
+ provinces_to_highlight = {
87
+ province_id = 410
88
+ }
89
+
90
+ trigger = {
91
+ owns = 410
92
+ 410 = {
93
+ OR = {
94
+ is_prosperous = yes
95
+ development = 20
96
+ }
97
+ }
98
+ 410 = {
99
+ has_tax_building_trigger = yes
100
+ }
101
+ 410 = {
102
+ has_production_building_trigger = yes
103
+ }
104
+ 410 = {
105
+ has_trade_building_trigger = yes
106
+ }
107
+ }
108
+
109
+ effect = {
110
+ 410 = {
111
+ add_base_tax = 3
112
+ }
113
+ 410 = {
114
+ add_province_modifier = {
115
+ name = "turkoman_the_city_of_peace"
116
+ duration = -1
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ qara_qoyunlu_house_of_wisdom = {
123
+ icon = mission_quran
124
+ required_missions = { qara_qoyunlu_custodian_of_baghdad }
125
+ position = 2
126
+
127
+ provinces_to_highlight = {
128
+ province_id = 410
129
+ }
130
+
131
+ trigger = {
132
+ owns = 410
133
+ 410 = {
134
+ base_tax = 10
135
+ }
136
+ OR = {
137
+ 410 = {
138
+ has_building = university
139
+ }
140
+ ADM = 5
141
+ ruler_has_personality = scholar_personality
142
+ ruler_has_personality = free_thinker_personality
143
+ }
144
+ }
145
+
146
+ effect = {
147
+ if = {
148
+ limit = {
149
+ piety = 0
150
+ }
151
+ add_piety = 0.25
152
+ }
153
+ else_if = {
154
+ limit = {
155
+ NOT = { piety = 0 }
156
+ }
157
+ add_piety = -0.25
158
+ }
159
+ add_country_modifier = {
160
+ name = "turkoman_house_of_wisdom"
161
+ duration = 3650
162
+ }
163
+ }
164
+ }
165
+
166
+ qara_qoyunlu_era = {
167
+ icon = qara_qoyunlu_era
168
+ required_missions = { qara_qoyunlu_house_of_wisdom }
169
+ position = 4
170
+
171
+ provinces_to_highlight = {
172
+ }
173
+
174
+ trigger = {
175
+ stability = 3
176
+ total_development = 500
177
+ prestige = 90
178
+ legitimacy = 90
179
+ religious_unity = 0.75
180
+ if = {
181
+ limit = {
182
+ has_dlc = "Mandate of Heaven"
183
+ }
184
+ OR = {
185
+ in_golden_age = yes
186
+ has_had_golden_age = yes
187
+ }
188
+ }
189
+ }
190
+
191
+ effect = {
192
+ if = {
193
+ limit = {
194
+ has_dlc = "Mandate of Heaven"
195
+ }
196
+ custom_tooltip = turkoman_if_used_ge_rest_else_30_years_extension_tt
197
+ if = {
198
+ limit = { has_had_golden_age = yes }
199
+ reset_golden_age = yes
200
+ }
201
+ else_if = {
202
+ limit = { in_golden_age = yes }
203
+ extend_golden_age = 360
204
+ }
205
+ add_country_modifier = {
206
+ name = "turkoman_era_of_black_sheep"
207
+ duration = 18250
208
+ }
209
+ }
210
+ else = {
211
+ add_country_modifier = {
212
+ name = "turkoman_era_of_black_sheep2"
213
+ duration = 18250
214
+ }
215
+ }
216
+ }
217
+ }
218
+
219
+ qara_qoyunlu_merchant_fleet = {
220
+ icon = mission_arabian_sea_trade
221
+ required_missions = { qara_qoyunlu_dominate_the_gulf }
222
+ position = 5
223
+
224
+ trigger = {
225
+ navy_size_percentage = 0.8
226
+ num_of_light_ship = 10
227
+ }
228
+
229
+ effect = {
230
+ add_navy_tradition = 10
231
+ add_country_modifier = {
232
+ name = "turkoman_naval_routes"
233
+ duration = 9125
234
+ }
235
+ define_advisor = {
236
+ type = trader
237
+ skill = 3
238
+ culture = ROOT
239
+ religion = ROOT
240
+ cost_multiplier = 0.25
241
+ }
242
+ if = {
243
+ limit = {
244
+ NOT = {
245
+ any_known_country = {
246
+ any_owned_province = {
247
+ has_port = yes
248
+ sea_zone = {
249
+ area = persian_gulf_area
250
+ }
251
+ }
252
+ navy_size = root
253
+ }
254
+ }
255
+ }
256
+ custom_tooltip = turkoman_persian_gulf_navy_tt_yes
257
+ tooltip = {
258
+ add_country_modifier = {
259
+ name = "turkoman_naval_hegemony"
260
+ duration = 5475
261
+ }
262
+ }
263
+ }
264
+ else = {
265
+ custom_tooltip = turkoman_persian_gulf_navy_tt_no
266
+ tooltip = {
267
+ add_country_modifier = {
268
+ name = "turkoman_naval_hegemony"
269
+ duration = 5475
270
+ }
271
+ }
272
+ }
273
+ hidden_effect = {
274
+ if = {
275
+ limit = {
276
+ NOT = {
277
+ any_known_country = {
278
+ any_owned_province = {
279
+ has_port = yes
280
+ sea_zone = {
281
+ area = persian_gulf_area
282
+ }
283
+ }
284
+ navy_size = root
285
+ }
286
+ }
287
+ }
288
+ add_country_modifier = {
289
+ name = "turkoman_naval_hegemony"
290
+ duration = 5475
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+
297
+ qara_qoyunlu_maragheh_observatory = {
298
+ icon = qara_qoyunlu_maragheh_observatory
299
+ required_missions = { qara_qoyunlu_patronize_arts }
300
+ position = 8
301
+
302
+ provinces_to_highlight = {
303
+ province_id = 2207
304
+ }
305
+
306
+ trigger = {
307
+ owns = 2207
308
+ 2207 = {
309
+ development = 15
310
+ }
311
+ OR = {
312
+ innovativeness = 10
313
+ full_idea_group = innovativeness_ideas
314
+ monthly_dip = 12
315
+ }
316
+ }
317
+
318
+ effect = {
319
+ country_event = { id = flavor_turkoman.3 }
320
+ custom_tooltip = turkoman_maragheh_event_insight_tt
321
+ }
322
+ }
323
+
324
+ qara_qoyunlu_imperial_fabrics = {
325
+ icon = mission_gujarati_textiles
326
+ required_missions = { }
327
+ position = 9
328
+
329
+ provinces_to_highlight = {
330
+ owned_by = ROOT
331
+ OR = {
332
+ trade_goods = cloth
333
+ trade_goods = silk
334
+ }
335
+ OR = {
336
+ NOT = {
337
+ base_production = 5
338
+ }
339
+ NOT = {
340
+ has_production_building_trigger = yes
341
+ }
342
+ NOT = {
343
+ has_manufactory_trigger = yes
344
+ }
345
+ }
346
+ }
347
+
348
+
349
+ trigger = {
350
+ calc_true_if = {
351
+ all_owned_province = {
352
+ OR = {
353
+ trade_goods = cloth
354
+ trade_goods = silk
355
+ }
356
+ base_production = 5
357
+ }
358
+ amount = 5
359
+ }
360
+ calc_true_if = {
361
+ all_owned_province = {
362
+ OR = {
363
+ trade_goods = cloth
364
+ trade_goods = silk
365
+ }
366
+ has_production_building_trigger = yes
367
+ }
368
+ amount = 5
369
+ }
370
+ calc_true_if = {
371
+ all_owned_province = {
372
+ OR = {
373
+ trade_goods = cloth
374
+ trade_goods = silk
375
+ }
376
+ has_manufactory_trigger = yes
377
+ }
378
+ amount = 5
379
+ }
380
+ }
381
+
382
+ effect = {
383
+ add_country_modifier = {
384
+ name = "turkoman_expanding_industry"
385
+ duration = 3650
386
+ }
387
+ custom_tooltip = trk_chance_extra_dev_tt
388
+ set_country_flag = trk_developing_cloth_flag
389
+ if = {
390
+ limit = {
391
+ development_in_provinces = {
392
+ value = 100
393
+ trade_goods = wool
394
+ }
395
+ }
396
+ custom_tooltip = trk_convert_wool_provinces_tt_yes
397
+ }
398
+ else = {
399
+ custom_tooltip = trk_convert_wool_provinces_tt_no
400
+ }
401
+
402
+ hidden_effect = {
403
+ if = {
404
+ limit = {
405
+ development_in_provinces = {
406
+ value = 100
407
+ trade_goods = wool
408
+ }
409
+ }
410
+ random_owned_province = {
411
+ limit = {
412
+ trade_goods = wool
413
+ }
414
+ change_trade_goods = cloth
415
+ }
416
+ random_owned_province = {
417
+ limit = {
418
+ trade_goods = wool
419
+ }
420
+ change_trade_goods = cloth
421
+ }
422
+ random_owned_province = {
423
+ limit = {
424
+ trade_goods = wool
425
+ }
426
+ change_trade_goods = cloth
427
+ }
428
+ }
429
+ }
430
+ }
431
+ }
432
+
433
+ }
434
+
435
+ qara_qoyunlu_second = {
436
+ slot = 2
437
+ generic = no
438
+ ai = yes
439
+ potential_on_load = {
440
+ has_dlc = "King of Kings"
441
+ }
442
+ potential = {
443
+ tag = QAR
444
+ NOT = { map_setup = map_setup_random }
445
+ has_dlc = "King of Kings"
446
+ }
447
+ has_country_shield = yes
448
+
449
+ qara_qoyunlu_secure_basra = {
450
+ icon = mission_restore_caliphate_of_cordoba
451
+ required_missions = { qara_qoyunlu_emirs_mesopotamia }
452
+ position = 2
453
+
454
+ provinces_to_highlight = {
455
+ OR = {
456
+ area = basra_area
457
+ area = khuzestan_area
458
+ }
459
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
460
+ }
461
+
462
+ trigger = {
463
+ basra_area = {
464
+ type = all
465
+ country_or_non_sovereign_subject_holds = ROOT
466
+ }
467
+ khuzestan_area = {
468
+ type = all
469
+ country_or_non_sovereign_subject_holds = ROOT
470
+ }
471
+ }
472
+
473
+ effect = {
474
+ 408 = {
475
+ add_base_production = 3
476
+ }
477
+ 408 = {
478
+ add_province_modifier = {
479
+ name = turkoman_entrepot_of_persia
480
+ duration = -1
481
+ }
482
+ }
483
+ bahrain_area = {
484
+ limit = {
485
+ NOT = { is_core = ROOT }
486
+ NOT = { is_permanent_claim = ROOT }
487
+ }
488
+ add_permanent_claim = ROOT
489
+ }
490
+ persian_gulf_coast = {
491
+ limit = {
492
+ NOT = { is_core = ROOT }
493
+ NOT = { is_permanent_claim = ROOT }
494
+ }
495
+ add_permanent_claim = ROOT
496
+ }
497
+ farsistan_area = {
498
+ limit = {
499
+ NOT = { is_core = ROOT }
500
+ NOT = { is_permanent_claim = ROOT }
501
+ }
502
+ add_permanent_claim = ROOT
503
+ }
504
+ }
505
+ }
506
+
507
+ qara_qoyunlu_dominate_the_gulf = {
508
+ icon = qara_qoyunlu_dominate_the_gulf
509
+ required_missions = { qara_qoyunlu_secure_basra }
510
+ position = 4
511
+
512
+ provinces_to_highlight = {
513
+ OR = {
514
+ area = persian_gulf_coast
515
+ area = bahrain_area
516
+ province_id = 408
517
+ }
518
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
519
+ }
520
+
521
+ trigger = {
522
+ owns = 408
523
+ 408 = { #Basra
524
+ trade_share = {
525
+ country = ROOT
526
+ share = 50
527
+ }
528
+ }
529
+ persian_gulf_coast = {
530
+ type = all
531
+ country_or_non_sovereign_subject_holds = ROOT
532
+ }
533
+ bahrain_area = {
534
+ type = all
535
+ country_or_non_sovereign_subject_holds = ROOT
536
+ }
537
+ }
538
+
539
+ effect = {
540
+ add_sailors = 1000
541
+ add_country_modifier = {
542
+ name = turkoman_gulf_fleet
543
+ duration = 3650
544
+ }
545
+ 408 = {
546
+ add_unit_construction = {
547
+ type = light_ship
548
+ amount = 5
549
+ speed = 0.25
550
+ cost = 0
551
+ }
552
+ }
553
+ custom_tooltip = turkoman_empty
554
+ pirate_coast_area = {
555
+ limit = {
556
+ NOT = { is_core = ROOT }
557
+ NOT = { is_permanent_claim = ROOT }
558
+ }
559
+ add_permanent_claim = ROOT
560
+ }
561
+ mogostan_area = {
562
+ limit = {
563
+ NOT = { is_core = ROOT }
564
+ NOT = { is_permanent_claim = ROOT }
565
+ }
566
+ add_permanent_claim = ROOT
567
+ }
568
+ oman_area = {
569
+ limit = {
570
+ NOT = { is_core = ROOT }
571
+ NOT = { is_permanent_claim = ROOT }
572
+ }
573
+ add_permanent_claim = ROOT
574
+ }
575
+ mascat_area = {
576
+ limit = {
577
+ NOT = { is_core = ROOT }
578
+ NOT = { is_permanent_claim = ROOT }
579
+ }
580
+ add_permanent_claim = ROOT
581
+ }
582
+ }
583
+ }
584
+
585
+ qara_qoyunlu_control_hormuz = {
586
+ icon = mission_conquer_andhra_bah
587
+ required_missions = { qara_qoyunlu_dominate_the_gulf }
588
+ position = 6
589
+
590
+ provinces_to_highlight = {
591
+ OR = {
592
+ AND = {
593
+ province_id = 2999
594
+ NOT = {
595
+ 2999 = { trade_share = { country = ROOT share = 75 } }
596
+ }
597
+ }
598
+ AND = {
599
+ owned_by = ROOT
600
+ province_has_center_of_trade_of_level = 1
601
+ NOT = { base_production = 6 }
602
+ any_trade_node_member_province = { province_id = 2999 }
603
+ }
604
+ }
605
+ }
606
+
607
+ trigger = {
608
+ 2999 = {
609
+ calc_true_if = {
610
+ all_trade_node_member_province = {
611
+ province_has_center_of_trade_of_level = 1
612
+ base_production = 6
613
+ owned_by = ROOT
614
+ }
615
+ amount = 3
616
+ }
617
+ }
618
+ 2999 = { #Hormuz
619
+ trade_share = {
620
+ country = ROOT
621
+ share = 75
622
+ }
623
+ }
624
+ }
625
+
626
+ effect = {
627
+ add_years_of_trade_income = {
628
+ years = 1
629
+ custom_tooltip = turkoman_trade_income
630
+ }
631
+ add_country_modifier = {
632
+ name = turkoman_control_of_hormuz
633
+ duration = -1
634
+ }
635
+ custom_tooltip = turkoman_gain_mercantilism
636
+ hidden_effect = {
637
+ if = {
638
+ limit = {
639
+ owns = 2218
640
+ 2218 = {
641
+ province_has_center_of_trade_of_level = 1
642
+ }
643
+ }
644
+ add_mercantilism = 1
645
+ }
646
+ if = {
647
+ limit = {
648
+ owns = 4332
649
+ 4332 = {
650
+ province_has_center_of_trade_of_level = 1
651
+ }
652
+ }
653
+ add_mercantilism = 1
654
+ }
655
+ if = {
656
+ limit = {
657
+ owns = 431
658
+ 431 = {
659
+ province_has_center_of_trade_of_level = 1
660
+ }
661
+ }
662
+ add_mercantilism = 1
663
+ }
664
+ if = {
665
+ limit = {
666
+ owns = 2999
667
+ 2999 = {
668
+ province_has_center_of_trade_of_level = 1
669
+ }
670
+ }
671
+ add_mercantilism = 1
672
+ }
673
+ if = {
674
+ limit = {
675
+ owns = 400
676
+ 400 = {
677
+ province_has_center_of_trade_of_level = 1
678
+ }
679
+ }
680
+ add_mercantilism = 1
681
+ }
682
+ }
683
+ }
684
+ }
685
+
686
+ qara_qoyunlu_patronize_arts = {
687
+ icon = mission_book_of_royal_degrees
688
+ required_missions = { }
689
+ position = 7
690
+
691
+ provinces_to_highlight = {
692
+ is_capital_of = ROOT
693
+ NOT = {
694
+ renaissance = 100
695
+ }
696
+ }
697
+
698
+ trigger = {
699
+ prestige = 40
700
+ capital_scope = {
701
+ renaissance = 100
702
+ }
703
+ OR = {
704
+ has_adm_advisor_2 = yes
705
+ has_dip_advisor_2 = yes
706
+ has_mil_advisor_2 = yes
707
+ }
708
+ }
709
+
710
+ effect = {
711
+ add_country_modifier = {
712
+ name = turkoman_schools_of_thought
713
+ duration = 7300
714
+ }
715
+ define_advisor = {
716
+ type = philosopher
717
+ skill = 2
718
+ culture = ROOT
719
+ religion = ROOT
720
+ cost_multiplier = 0.25
721
+ }
722
+ }
723
+ }
724
+
725
+ qara_qoyunlu_blue_mosque = {
726
+ icon = mission_central_asian_city
727
+ required_missions = { qara_qoyunlu_patronize_arts }
728
+ position = 9
729
+
730
+ provinces_to_highlight = {
731
+ province_id = 416
732
+ }
733
+
734
+ trigger = {
735
+ owns = 416
736
+ 416 = {
737
+ base_tax = 10
738
+ }
739
+ 416 = {
740
+ has_tax_building_trigger = yes
741
+ }
742
+ }
743
+
744
+ effect = {
745
+ if = {
746
+ limit = {
747
+ 416 = {
748
+ has_building = cathedral
749
+ NOT = {
750
+ has_building = temple
751
+ }
752
+ }
753
+ }
754
+ 416 = {
755
+ add_base_tax = 2
756
+ }
757
+ }
758
+ else_if = {
759
+ limit = {
760
+ 416 = {
761
+ has_building = temple
762
+ NOT = {
763
+ has_building = cathedral
764
+ }
765
+ }
766
+ }
767
+ custom_tooltip = turkoman_tabriz_upgrade_temple_tt
768
+ hidden_effect = {
769
+ 416 = {
770
+ remove_building = temple
771
+ add_building = cathedral
772
+ }
773
+ }
774
+ }
775
+ else = {
776
+ custom_tooltip = turkoman_tabriz_upgrade_temple_tt
777
+ }
778
+ 416 = {
779
+ add_province_modifier = {
780
+ name = turkoman_renovate_tabriz
781
+ duration = 7300
782
+ }
783
+ }
784
+ custom_tooltip = turkoman_blue_mosque_tt
785
+ set_country_flag = mosque_local_unrest_flag
786
+ }
787
+ }
788
+
789
+ qara_qoyunlu_pearl_of_the_empire = {
790
+ icon = mission_metropolis_of_the_deccan
791
+ required_missions = { qara_qoyunlu_blue_mosque qara_qoyunlu_imperial_fabrics }
792
+ position = 10
793
+
794
+ provinces_to_highlight = {
795
+ province_id = 416
796
+ }
797
+
798
+ trigger = {
799
+ owns = 416
800
+ 416 = {
801
+ development = 40
802
+ }
803
+ 416 = {
804
+ num_of_buildings_in_province = 5
805
+ }
806
+ }
807
+
808
+ effect = {
809
+ 416 = {
810
+ add_base_tax = 1
811
+ add_base_production = 1
812
+ add_base_manpower = 1
813
+ }
814
+ 416 = {
815
+ add_province_modifier = {
816
+ name = turkoman_pearl_of_the_empire
817
+ duration = -1
818
+ }
819
+ }
820
+ if = {
821
+ limit = {
822
+ 416 = {
823
+ NOT = {
824
+ any_province = {
825
+ religion_group = muslim
826
+ higher_development_than = PREV
827
+ }
828
+ }
829
+ }
830
+ }
831
+ custom_tooltip = turkoman_tabriz_dev_tt_yes
832
+ tooltip = {
833
+ if = {
834
+ limit = {
835
+ has_dlc = "Mandate of Heaven"
836
+ }
837
+ add_splendor = 300
838
+ }
839
+ else = {
840
+ add_dip_power = 200
841
+ }
842
+ }
843
+ }
844
+ else = {
845
+ custom_tooltip = turkoman_tabriz_dev_tt_no
846
+ tooltip = {
847
+ if = {
848
+ limit = {
849
+ has_dlc = "Mandate of Heaven"
850
+ }
851
+ add_splendor = 300
852
+ }
853
+ else = {
854
+ add_dip_power = 200
855
+ }
856
+ }
857
+ }
858
+ hidden_effect = {
859
+ if = {
860
+ limit = {
861
+ 416 = {
862
+ NOT = {
863
+ any_province = {
864
+ religion_group = muslim
865
+ higher_development_than = PREV
866
+ }
867
+ }
868
+ }
869
+ }
870
+ if = {
871
+ limit = {
872
+ has_dlc = "Mandate of Heaven"
873
+ }
874
+ add_splendor = 300
875
+ }
876
+ else = {
877
+ add_dip_power = 200
878
+ }
879
+ }
880
+ }
881
+ }
882
+ }
883
+
884
+ }
885
+
886
+ qara_qoyunlu_third = {
887
+ slot = 3
888
+ generic = no
889
+ ai = yes
890
+ potential_on_load = {
891
+ has_dlc = "King of Kings"
892
+ }
893
+ potential = {
894
+ tag = QAR
895
+ NOT = { map_setup = map_setup_random }
896
+ has_dlc = "King of Kings"
897
+ }
898
+ has_country_shield = yes
899
+
900
+ qara_qoyunlu_dismantle_ak_qoyunlu = {
901
+ icon = qara_qoyunlu_dismantle_ak_qoyunlu
902
+ required_missions = { qara_qoyunlu_stabilize_interior }
903
+ position = 2
904
+
905
+ provinces_to_highlight = {
906
+ OR = {
907
+ area = al_jazira_area
908
+ area = north_kurdistan_area
909
+ area = erzurum_area
910
+ province_id = 2308
911
+ }
912
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
913
+ }
914
+
915
+ trigger = {
916
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
917
+ OR = {
918
+ area = al_jazira_area
919
+ area = north_kurdistan_area
920
+ area = erzurum_area
921
+ province_id = 2308
922
+ }
923
+ value = 8
924
+ }
925
+ }
926
+
927
+ effect = {
928
+ custom_tooltip = turkoman_anatolia_cb_tt
929
+ dulkadir_area = {
930
+ limit = {
931
+ NOT = { is_core = ROOT }
932
+ NOT = { is_permanent_claim = ROOT }
933
+ }
934
+ add_permanent_claim = ROOT
935
+ }
936
+ rum_area = {
937
+ limit = {
938
+ NOT = { is_core = ROOT }
939
+ NOT = { is_permanent_claim = ROOT }
940
+ }
941
+ add_permanent_claim = ROOT
942
+ }
943
+ kastamonu_area = {
944
+ limit = {
945
+ NOT = { is_core = ROOT }
946
+ NOT = { is_permanent_claim = ROOT }
947
+ }
948
+ add_permanent_claim = ROOT
949
+ }
950
+ cukurova_area = {
951
+ limit = {
952
+ NOT = { is_core = ROOT }
953
+ NOT = { is_permanent_claim = ROOT }
954
+ }
955
+ add_permanent_claim = ROOT
956
+ }
957
+ ankara_area = {
958
+ limit = {
959
+ NOT = { is_core = ROOT }
960
+ NOT = { is_permanent_claim = ROOT }
961
+ }
962
+ add_permanent_claim = ROOT
963
+ }
964
+ karaman_area = {
965
+ limit = {
966
+ NOT = { is_core = ROOT }
967
+ NOT = { is_permanent_claim = ROOT }
968
+ }
969
+ add_permanent_claim = ROOT
970
+ }
971
+ aleppo_area = {
972
+ limit = {
973
+ NOT = { is_core = ROOT }
974
+ NOT = { is_permanent_claim = ROOT }
975
+ }
976
+ add_permanent_claim = ROOT
977
+ }
978
+ syria_area = {
979
+ limit = {
980
+ NOT = { is_core = ROOT }
981
+ NOT = { is_permanent_claim = ROOT }
982
+ }
983
+ add_permanent_claim = ROOT
984
+ }
985
+ syrian_desert_area = {
986
+ limit = {
987
+ NOT = { is_core = ROOT }
988
+ NOT = { is_permanent_claim = ROOT }
989
+ }
990
+ add_permanent_claim = ROOT
991
+ }
992
+ hidden_effect = {
993
+ every_country = {
994
+ limit = {
995
+ capital_scope = {
996
+ region = anatolia_region
997
+ }
998
+ NOT = {
999
+ tag = TUR
1000
+ }
1001
+ }
1002
+ reverse_add_casus_belli = {
1003
+ type = cb_vassalize_mission
1004
+ months = 300
1005
+ target = ROOT
1006
+ }
1007
+ }
1008
+ }
1009
+ }
1010
+ }
1011
+
1012
+ qara_qoyunlu_anatolian_turnabout = {
1013
+ icon = mission_ottoman_diplomacy
1014
+ required_missions = { qara_qoyunlu_dismantle_ak_qoyunlu }
1015
+ position = 4
1016
+
1017
+ provinces_to_highlight = {
1018
+ OR = {
1019
+ area = dulkadir_area
1020
+ area = cukurova_area
1021
+ area = rum_area
1022
+ area = kastamonu_area
1023
+ area = ankara_area
1024
+ area = karaman_area
1025
+ }
1026
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1027
+ }
1028
+
1029
+ trigger = {
1030
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1031
+ OR = {
1032
+ area = dulkadir_area
1033
+ area = cukurova_area
1034
+ area = rum_area
1035
+ area = kastamonu_area
1036
+ area = ankara_area
1037
+ area = karaman_area
1038
+ }
1039
+ value = 15
1040
+ }
1041
+ }
1042
+
1043
+ effect = {
1044
+ if = {
1045
+ limit = {
1046
+ primary_culture = turkish
1047
+ }
1048
+ add_dip_power = 100
1049
+ }
1050
+ else = { add_accepted_culture = turkish }
1051
+ add_country_modifier = {
1052
+ name = "turkmen_turkic_union"
1053
+ duration = -1
1054
+ desc = turkmen_turkic_union_tt
1055
+ }
1056
+ anatolia_region = {
1057
+ limit = {
1058
+ NOT = { is_core = ROOT }
1059
+ NOT = { is_permanent_claim = ROOT }
1060
+ }
1061
+ add_permanent_claim = ROOT
1062
+ }
1063
+ if = {
1064
+ limit = {
1065
+ NOT = {
1066
+ has_country_flag = turkoman_hasnt_lost_battle_to_ottomans
1067
+ }
1068
+ }
1069
+ custom_tooltip = turkoman_battle_ottomans_tt_yes
1070
+ tooltip = {
1071
+ add_permanent_power_projection = {
1072
+ type = 10_permanent_power_projection
1073
+ amount = 10
1074
+ }
1075
+ }
1076
+ }
1077
+ else = {
1078
+ custom_tooltip = turkoman_battle_ottomans_tt_no
1079
+ tooltip = {
1080
+ add_permanent_power_projection = {
1081
+ type = 10_permanent_power_projection
1082
+ amount = 10
1083
+ }
1084
+ }
1085
+ }
1086
+ hidden_effect = {
1087
+ if = {
1088
+ limit = {
1089
+ NOT = {
1090
+ has_country_flag = turkoman_hasnt_lost_battle_to_ottomans
1091
+ }
1092
+ }
1093
+ add_permanent_power_projection = {
1094
+ type = 10_permanent_power_projection
1095
+ amount = 10
1096
+ }
1097
+ }
1098
+ }
1099
+ }
1100
+ }
1101
+
1102
+ qara_qoyunlu_reform_the_army = {
1103
+ icon = mission_ottoman_early_army
1104
+ required_missions = { qara_qoyunlu_anatolian_turnabout qara_qoyunlu_mounted_dread }
1105
+ position = 5
1106
+
1107
+ provinces_to_highlight = {
1108
+ }
1109
+
1110
+ trigger = {
1111
+ OR = {
1112
+ accepted_culture = turkish
1113
+ primary_culture = turco_iranian
1114
+ }
1115
+ development_in_provinces = {
1116
+ value = 150
1117
+ OR = {
1118
+ culture = turkish
1119
+ culture = turco_iranian
1120
+ }
1121
+ }
1122
+ NOT = { average_autonomy_above_min = 10 }
1123
+ }
1124
+
1125
+ effect = {
1126
+ custom_tooltip = turkoman_spawn_janissary_tt
1127
+ add_country_modifier = {
1128
+ name = "turkoman_state_modernization"
1129
+ duration = 7300
1130
+ }
1131
+ set_country_flag = turkoman_unlock_ottoman_reform
1132
+ add_government_reform = turkoman_ottoman_institutions
1133
+ hidden_effect = {
1134
+ capital_scope = {
1135
+ janissary_infantry = ROOT
1136
+ janissary_infantry = ROOT
1137
+ janissary_infantry = ROOT
1138
+ janissary_infantry = ROOT
1139
+ janissary_infantry = ROOT
1140
+ janissary_infantry = ROOT
1141
+ janissary_infantry = ROOT
1142
+ janissary_infantry = ROOT
1143
+ janissary_infantry = ROOT
1144
+ janissary_infantry = ROOT
1145
+ }
1146
+ }
1147
+ }
1148
+ }
1149
+
1150
+ qara_qoyunlu_a_gunpowder_empire = {
1151
+ icon = mission_guns_of_urban
1152
+ required_missions = { qara_qoyunlu_reform_the_army }
1153
+ position = 6
1154
+
1155
+ trigger = {
1156
+ if = {
1157
+ limit = {
1158
+ has_dlc = "Cradle of Civilization"
1159
+ }
1160
+ army_professionalism = 0.4
1161
+ }
1162
+ else = {
1163
+ army_tradition = 60
1164
+ }
1165
+ num_of_artillery = 20
1166
+ OR = {
1167
+ has_global_modifier_value = {
1168
+ which = artillery_power
1169
+ value = 0.1
1170
+ }
1171
+ has_global_modifier_value = {
1172
+ which = discipline
1173
+ value = 0.15
1174
+ }
1175
+ }
1176
+ }
1177
+
1178
+ effect = {
1179
+ if = {
1180
+ limit = {
1181
+ has_dlc = "Cradle of Civilization"
1182
+ }
1183
+ add_army_professionalism = 0.1
1184
+ }
1185
+ else = {
1186
+ add_army_tradition = 20
1187
+ }
1188
+ add_country_modifier = {
1189
+ name = turkoman_gunpowder
1190
+ duration = 7300
1191
+ }
1192
+ define_advisor = {
1193
+ type = commandant
1194
+ skill = 3
1195
+ culture = ROOT
1196
+ religion = ROOT
1197
+ cost_multiplier = 0.25
1198
+ }
1199
+ }
1200
+ }
1201
+
1202
+ qara_qoyunlu_splendid_court = {
1203
+ icon = mission_gharbianss
1204
+ required_missions = { qara_qoyunlu_patronize_arts }
1205
+ position = 8
1206
+
1207
+ provinces_to_highlight = {
1208
+ owned_by = ROOT
1209
+ NOT = {
1210
+ OR = {
1211
+ has_building = courthouse
1212
+ has_building = town_hall
1213
+ }
1214
+ }
1215
+ }
1216
+
1217
+ trigger = {
1218
+ has_adm_advisor_3 = yes
1219
+ has_dip_advisor_3 = yes
1220
+ has_mil_advisor_3 = yes
1221
+ calc_true_if = {
1222
+ all_owned_province = {
1223
+ OR = {
1224
+ has_building = courthouse
1225
+ has_building = town_hall
1226
+ }
1227
+ }
1228
+ amount = 5
1229
+ }
1230
+ }
1231
+
1232
+ effect = {
1233
+ if = {
1234
+ limit = {
1235
+ has_dlc = "Rights of Man"
1236
+ }
1237
+ custom_tooltip = turkoman_well_connected_chace_tt
1238
+ set_country_flag = turkoman_triple_trait_chance
1239
+ }
1240
+ add_country_modifier = {
1241
+ name = turkoman_splendid_court
1242
+ duration = 7300
1243
+ }
1244
+ }
1245
+ }
1246
+
1247
+ qara_qoyunlu_kitab = {
1248
+ icon = mission_court_education
1249
+ required_missions = { qara_qoyunlu_splendid_court }
1250
+ position = 10
1251
+
1252
+ trigger = {
1253
+ prestige = 60
1254
+ OR = {
1255
+ DIP = 5
1256
+ monthly_dip = 10
1257
+ if = {
1258
+ limit = {
1259
+ has_dlc = "Rights of Man"
1260
+ }
1261
+ ruler_has_personality = well_connected_personality
1262
+ }
1263
+ }
1264
+ }
1265
+
1266
+ effect = {
1267
+ if = {
1268
+ limit = {
1269
+ has_dlc = "Rule Britannia"
1270
+ }
1271
+ change_innovativeness = 5
1272
+ }
1273
+ else = {
1274
+ add_dip_power = 100
1275
+ }
1276
+ country_event = { id = flavor_turkoman.4 }
1277
+ custom_tooltip = turkoman_tihrani_insight_tt
1278
+ }
1279
+ }
1280
+
1281
+ }
1282
+
1283
+ qara_qoyunlu_fourth = {
1284
+ slot = 4
1285
+ generic = no
1286
+ ai = yes
1287
+ potential_on_load = {
1288
+ has_dlc = "King of Kings"
1289
+ }
1290
+ potential = {
1291
+ tag = QAR
1292
+ NOT = { map_setup = map_setup_random }
1293
+ has_dlc = "King of Kings"
1294
+ }
1295
+ has_country_shield = yes
1296
+
1297
+ qara_qoyunlu_stabilize_interior = {
1298
+ icon = mission_restore_faith_in_the_throne
1299
+ required_missions = { }
1300
+ position = 1
1301
+
1302
+ provinces_to_highlight = {
1303
+ owner = {
1304
+ is_subject_of = ROOT
1305
+ NOT = {
1306
+ has_opinion = {
1307
+ who = ROOT
1308
+ value = 190
1309
+ }
1310
+ }
1311
+ }
1312
+ }
1313
+
1314
+ trigger = {
1315
+ is_in_deficit = no
1316
+ OR = {
1317
+ army_size_percentage = 0.9
1318
+ army_size = 25
1319
+ manpower_percentage = 0.75
1320
+ }
1321
+ all_subject_country = {
1322
+ has_opinion = {
1323
+ who = ROOT
1324
+ value = 190
1325
+ }
1326
+ }
1327
+ }
1328
+
1329
+ effect = {
1330
+ if = {
1331
+ limit = {
1332
+ has_dlc = "Cradle of Civilization"
1333
+ }
1334
+ add_government_power = {
1335
+ mechanic_type = tribal_federation_mechanic
1336
+ power_type = tribal_allegiance
1337
+ value = 30
1338
+ }
1339
+ }
1340
+ else = {
1341
+ add_prestige_or_monarch_power = { amount = 10 }
1342
+ }
1343
+ add_country_modifier = {
1344
+ name = "turkoman_advance"
1345
+ duration = 7300
1346
+ }
1347
+ 2308 = {
1348
+ if = {
1349
+ limit = {
1350
+ NOT = { is_core = ROOT }
1351
+ NOT = { is_permanent_claim = ROOT }
1352
+ }
1353
+ add_permanent_claim = ROOT
1354
+ }
1355
+ }
1356
+ shirvan_area = {
1357
+ limit = {
1358
+ NOT = { is_core = ROOT }
1359
+ NOT = { is_permanent_claim = ROOT }
1360
+ }
1361
+ add_permanent_claim = ROOT
1362
+ }
1363
+ samtskhe_area = {
1364
+ limit = {
1365
+ NOT = { is_core = ROOT }
1366
+ NOT = { is_permanent_claim = ROOT }
1367
+ }
1368
+ add_permanent_claim = ROOT
1369
+ }
1370
+ imereti_area = {
1371
+ limit = {
1372
+ NOT = { is_core = ROOT }
1373
+ NOT = { is_permanent_claim = ROOT }
1374
+ }
1375
+ add_permanent_claim = ROOT
1376
+ }
1377
+ kartli_kakheti_area = {
1378
+ limit = {
1379
+ NOT = { is_core = ROOT }
1380
+ NOT = { is_permanent_claim = ROOT }
1381
+ }
1382
+ add_permanent_claim = ROOT
1383
+ }
1384
+ al_jazira_area = {
1385
+ limit = {
1386
+ NOT = { is_core = ROOT }
1387
+ NOT = { is_permanent_claim = ROOT }
1388
+ }
1389
+ add_permanent_claim = ROOT
1390
+ }
1391
+ north_kurdistan_area = {
1392
+ limit = {
1393
+ NOT = { is_core = ROOT }
1394
+ NOT = { is_permanent_claim = ROOT }
1395
+ }
1396
+ add_permanent_claim = ROOT
1397
+ }
1398
+ erzurum_area = {
1399
+ limit = {
1400
+ NOT = { is_core = ROOT }
1401
+ NOT = { is_permanent_claim = ROOT }
1402
+ }
1403
+ add_permanent_claim = ROOT
1404
+ }
1405
+ }
1406
+ }
1407
+
1408
+ qara_qoyunlu_caucasian_consolidation = {
1409
+ icon = mission_the_caucasus_rus
1410
+ required_missions = { qara_qoyunlu_stabilize_interior }
1411
+ position = 2
1412
+
1413
+ provinces_to_highlight = {
1414
+ region = caucasia_region
1415
+ OR = {
1416
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1417
+ NOT = { religion = ROOT }
1418
+ nationalism = 1
1419
+ }
1420
+ }
1421
+
1422
+ trigger = {
1423
+ OR = {
1424
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1425
+ region = caucasia_region
1426
+ religion = ROOT
1427
+ value = 12
1428
+ }
1429
+ AND = {
1430
+ custom_trigger_tooltip = {
1431
+ tooltip = turkoman_accepted_caucasian_tt
1432
+ calc_true_if = {
1433
+ accepted_culture = armenian
1434
+ accepted_culture = georgian
1435
+ accepted_culture = dagestani
1436
+ accepted_culture = circassian
1437
+ amount = 2
1438
+ }
1439
+ }
1440
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1441
+ region = caucasia_region
1442
+ NOT = {
1443
+ nationalism = 1
1444
+ }
1445
+ value = 12
1446
+ }
1447
+ }
1448
+ }
1449
+ }
1450
+
1451
+ effect = {
1452
+ caucasia_region = {
1453
+ limit = {
1454
+ NOT = { is_core = ROOT }
1455
+ NOT = { is_permanent_claim = ROOT }
1456
+ }
1457
+ add_permanent_claim = ROOT
1458
+ }
1459
+ if = {
1460
+ limit = {
1461
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1462
+ region = caucasia_region
1463
+ religion = ROOT
1464
+ value = 10
1465
+ }
1466
+ }
1467
+ custom_tooltip = turkoman_convert_caucasia_tt_yes
1468
+ tooltip = {
1469
+ caucasia_region = {
1470
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1471
+ add_province_modifier = {
1472
+ name = "turkoman_caucasian_ghazis"
1473
+ duration = -1
1474
+ }
1475
+ }
1476
+ }
1477
+ }
1478
+ else = {
1479
+ custom_tooltip = turkoman_convert_caucasia_tt_no
1480
+ tooltip = {
1481
+ caucasia_region = {
1482
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1483
+ add_province_modifier = {
1484
+ name = "turkoman_caucasian_ghazis"
1485
+ duration = -1
1486
+ }
1487
+ }
1488
+ }
1489
+ }
1490
+ if = {
1491
+ limit = {
1492
+ custom_trigger_tooltip = {
1493
+ tooltip = turkoman_accepted_caucasian_tt
1494
+ calc_true_if = {
1495
+ accepted_culture = armenian
1496
+ accepted_culture = georgian
1497
+ accepted_culture = dagestani
1498
+ accepted_culture = circassian
1499
+ amount = 2
1500
+ }
1501
+ }
1502
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1503
+ region = caucasia_region
1504
+ NOT = {
1505
+ nationalism = 1
1506
+ }
1507
+ value = 12
1508
+ }
1509
+ }
1510
+ custom_tooltip = turkoman_accept_caucasia_tt_yes
1511
+ tooltip = {
1512
+ caucasia_region = {
1513
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1514
+ add_province_modifier = {
1515
+ name = "turkoman_consolidation_of_caucasia"
1516
+ duration = -1
1517
+ }
1518
+ }
1519
+ }
1520
+ }
1521
+ else = {
1522
+ custom_tooltip = turkoman_accept_caucasia_tt_no
1523
+ tooltip = {
1524
+ caucasia_region = {
1525
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1526
+ add_province_modifier = {
1527
+ name = "turkoman_consolidation_of_caucasia"
1528
+ duration = -1
1529
+ }
1530
+ }
1531
+ }
1532
+ }
1533
+ custom_tooltip = turkoman_both_bonuses_tt
1534
+ hidden_effect = {
1535
+ if = {
1536
+ limit = {
1537
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1538
+ region = caucasia_region
1539
+ religion = ROOT
1540
+ value = 10
1541
+ }
1542
+ }
1543
+ caucasia_region = {
1544
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1545
+ add_province_modifier = {
1546
+ name = "turkoman_caucasian_ghazis"
1547
+ duration = -1
1548
+ }
1549
+ }
1550
+ }
1551
+ if = {
1552
+ limit = {
1553
+ custom_trigger_tooltip = {
1554
+ tooltip = turkoman_accepted_caucasian_tt
1555
+ calc_true_if = {
1556
+ accepted_culture = armenian
1557
+ accepted_culture = georgian
1558
+ accepted_culture = dagestani
1559
+ accepted_culture = circassian
1560
+ amount = 2
1561
+ }
1562
+ }
1563
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1564
+ region = caucasia_region
1565
+ NOT = {
1566
+ nationalism = 1
1567
+ }
1568
+ value = 12
1569
+ }
1570
+ }
1571
+ caucasia_region = {
1572
+ limit = { country_or_non_sovereign_subject_holds = ROOT }
1573
+ add_province_modifier = {
1574
+ name = "turkoman_consolidation_of_caucasia"
1575
+ duration = -1
1576
+ }
1577
+ }
1578
+ }
1579
+ }
1580
+ }
1581
+ }
1582
+
1583
+ qara_qoyunlu_overpower_the_mamluks = {
1584
+ icon = mission_break_the_mamluks
1585
+ required_missions = { qara_qoyunlu_dismantle_ak_qoyunlu }
1586
+ position = 3
1587
+
1588
+ provinces_to_highlight = {
1589
+ OR = {
1590
+ area = syria_area
1591
+ area = syrian_desert_area
1592
+ area = aleppo_area
1593
+ }
1594
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1595
+ }
1596
+
1597
+ trigger = {
1598
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1599
+ OR = {
1600
+ area = syria_area
1601
+ area = syrian_desert_area
1602
+ area = aleppo_area
1603
+ }
1604
+ value = 7
1605
+ }
1606
+ }
1607
+
1608
+ effect = {
1609
+ if = {
1610
+ limit = {
1611
+ NOT = {
1612
+ army_tradition = 50
1613
+ }
1614
+ }
1615
+ create_general = { tradition = 50 }
1616
+ }
1617
+ else_if = {
1618
+ limit = {
1619
+ NOT = {
1620
+ army_tradition = 75
1621
+ }
1622
+ }
1623
+ create_general = { tradition = 75 }
1624
+ }
1625
+ else = {
1626
+ create_general = { tradition = 100 }
1627
+ }
1628
+ add_country_modifier = {
1629
+ name = "turkoman_overpower_mamluks"
1630
+ duration = 7300
1631
+ }
1632
+ palestine_area = {
1633
+ limit = {
1634
+ NOT = { is_core = ROOT }
1635
+ NOT = { is_permanent_claim = ROOT }
1636
+ }
1637
+ add_permanent_claim = ROOT
1638
+ }
1639
+ trans_jordan_area = {
1640
+ limit = {
1641
+ NOT = { is_core = ROOT }
1642
+ NOT = { is_permanent_claim = ROOT }
1643
+ }
1644
+ add_permanent_claim = ROOT
1645
+ }
1646
+ }
1647
+ }
1648
+
1649
+ qara_qoyunlu_mounted_dread = {
1650
+ icon = mission_abu_saids_dream
1651
+ required_missions = { }
1652
+ position = 4
1653
+
1654
+ trigger = {
1655
+ num_of_cavalry = 12
1656
+ OR = {
1657
+ has_global_modifier_value = {
1658
+ which = cavalry_power
1659
+ value = 0.4
1660
+ }
1661
+ has_global_modifier_value = {
1662
+ which = discipline
1663
+ value = 0.1
1664
+ }
1665
+ }
1666
+ }
1667
+
1668
+ effect = {
1669
+ capital_scope = {
1670
+ cavalry = ROOT
1671
+ cavalry = ROOT
1672
+ cavalry = ROOT
1673
+ }
1674
+ add_country_modifier = {
1675
+ name = turkoman_army_traditions
1676
+ duration = 9125
1677
+ }
1678
+ if = {
1679
+ limit = {
1680
+ army_tradition = 60
1681
+ }
1682
+ custom_tooltip = turkoman_enhance_army_traditions_tt_yes
1683
+ }
1684
+ else = {
1685
+ custom_tooltip = turkoman_enhance_army_traditions_tt_no
1686
+ }
1687
+ hidden_effect = {
1688
+ if = {
1689
+ limit = {
1690
+ army_tradition = 60
1691
+ }
1692
+ remove_country_modifier = turkoman_army_traditions
1693
+ add_country_modifier = {
1694
+ name = turkoman_army_traditions2
1695
+ duration = 9125
1696
+ }
1697
+ }
1698
+ }
1699
+ }
1700
+ }
1701
+
1702
+ qara_qoyunlu_architecture = {
1703
+ icon = mission_gawans_madrasar
1704
+ required_missions = { qara_qoyunlu_legacy_of_seljuk }
1705
+ position = 6
1706
+
1707
+ provinces_to_highlight = {
1708
+ owned_by = ROOT
1709
+ culture_group = iranian
1710
+ OR = {
1711
+ NOT = {
1712
+ has_tax_building_trigger = yes
1713
+ }
1714
+ NOT = {
1715
+ has_production_building_trigger = yes
1716
+ }
1717
+ NOT = {
1718
+ has_trade_building_trigger = yes
1719
+ }
1720
+ }
1721
+ }
1722
+
1723
+ trigger = {
1724
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1725
+ culture_group = iranian
1726
+ has_tax_building_trigger = yes
1727
+ value = 20
1728
+ }
1729
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1730
+ culture_group = iranian
1731
+ has_production_building_trigger = yes
1732
+ value = 20
1733
+ }
1734
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1735
+ culture_group = iranian
1736
+ has_trade_building_trigger = yes
1737
+ value = 20
1738
+ }
1739
+ }
1740
+
1741
+ effect = {
1742
+ if = {
1743
+ limit = {
1744
+ has_estate = estate_burghers
1745
+ NOT = { has_unlocked_estate_privilege = { estate_privilege = estate_burghers_great_works_of_iran } }
1746
+ }
1747
+ unlock_estate_privilege = {
1748
+ estate_privilege = estate_burghers_great_works_of_iran
1749
+ modifier_tooltip = estate_burghers_great_works_of_iran_tooltip
1750
+ effect_tooltip = "
1751
+ change_estate_land_share = {
1752
+ estate = estate_burghers
1753
+ share = 5
1754
+ }
1755
+ custom_tooltip = estate_burghers_great_works_of_iran_tt
1756
+ "
1757
+ }
1758
+ }
1759
+ else = {
1760
+ add_adm_power = 100
1761
+ hidden_effect = {
1762
+ unlock_estate_privilege = {
1763
+ estate_privilege = estate_burghers_great_works_of_iran
1764
+ }
1765
+ }
1766
+ }
1767
+ add_country_modifier = {
1768
+ name = turkoman_architectural_revival
1769
+ duration = 9125
1770
+ }
1771
+ }
1772
+ }
1773
+
1774
+ qara_qoyunlu_repopulate_iran = {
1775
+ icon = mission_conquer_central_deccan
1776
+ required_missions = { qara_qoyunlu_architecture }
1777
+ position = 7
1778
+
1779
+ provinces_to_highlight = {
1780
+ owned_by = ROOT
1781
+ culture_group = iranian
1782
+ OR = {
1783
+ NOT = {
1784
+ development = 15
1785
+ }
1786
+ NOT = {
1787
+ prosperity = 100
1788
+ }
1789
+ }
1790
+ }
1791
+
1792
+ trigger = {
1793
+ development_in_provinces = {
1794
+ value = 600
1795
+ culture_group = iranian
1796
+ }
1797
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1798
+ culture_group = iranian
1799
+ development = 15
1800
+ value = 10
1801
+ }
1802
+ if = {
1803
+ limit = {
1804
+ has_dlc = "Mandate of Heaven"
1805
+ }
1806
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1807
+ culture_group = iranian
1808
+ prosperity = 100
1809
+ value = 10
1810
+ }
1811
+ }
1812
+ }
1813
+
1814
+ effect = {
1815
+ custom_tooltip = turkoman_iranian_repopulation_tt
1816
+ add_country_modifier = {
1817
+ name = turkoman_repopulate_persia
1818
+ duration = 7300
1819
+ }
1820
+ hidden_effect = {
1821
+ for = {
1822
+ amount = 10
1823
+ effect = "
1824
+ random_owned_province = {
1825
+ limit = {
1826
+ culture_group = iranian
1827
+ }
1828
+ add_base_tax = 1
1829
+ }
1830
+ "
1831
+ }
1832
+ }
1833
+ }
1834
+ }
1835
+
1836
+ qara_qoyunlu_shahanshahs_of_eranshahr = {
1837
+ icon = mission_persianate_empire
1838
+ required_missions = { qara_qoyunlu_repopulate_iran qara_qoyunlu_splendid_court }
1839
+ position = 9
1840
+
1841
+ trigger = {
1842
+ stability = 3
1843
+ prestige = 90
1844
+ legitimacy = 90
1845
+ is_at_war = no
1846
+ }
1847
+
1848
+ effect = {
1849
+ country_event = { id = flavor_turkoman.5 }
1850
+ custom_tooltip = turkoman_shahanshah_insight_tt
1851
+ tooltip = {
1852
+ add_country_modifier = {
1853
+ name = turkoman_shahanshahs
1854
+ duration = 7300
1855
+ }
1856
+ }
1857
+ }
1858
+ }
1859
+ }
1860
+
1861
+ qara_qoyunlu_fifth = {
1862
+ slot = 5
1863
+ generic = no
1864
+ ai = yes
1865
+ potential_on_load = {
1866
+ has_dlc = "King of Kings"
1867
+ }
1868
+ potential = {
1869
+ tag = QAR
1870
+ NOT = { map_setup = map_setup_random }
1871
+ has_dlc = "King of Kings"
1872
+ }
1873
+ has_country_shield = yes
1874
+
1875
+ qara_qoyunlu_princes_of_persia = {
1876
+ icon = mission_persian_lion
1877
+ required_missions = { }
1878
+ position = 2
1879
+
1880
+ provinces_to_highlight = {
1881
+ OR = {
1882
+ owned_by = TIM
1883
+ owned_by = QOM
1884
+ }
1885
+ }
1886
+
1887
+ trigger = {
1888
+ OR = {
1889
+ QOM = {
1890
+ war_with = TIM
1891
+ }
1892
+ TIM = {
1893
+ NOT = {
1894
+ has_ruler = "Shah Rukh"
1895
+ }
1896
+ }
1897
+ NOT = {
1898
+ exists = QOM
1899
+ }
1900
+ }
1901
+ if = {
1902
+ limit = {
1903
+ exists = QOM
1904
+ }
1905
+ has_spy_network_in = {
1906
+ who = QOM
1907
+ value = 25
1908
+ }
1909
+ }
1910
+ }
1911
+
1912
+ effect = {
1913
+ if = {
1914
+ limit = {
1915
+ exists = QOM
1916
+ }
1917
+ add_spy_network_in = {
1918
+ who = QOM
1919
+ value = 25
1920
+ }
1921
+ }
1922
+ add_country_modifier = {
1923
+ name = "turkoman_exploiting_the_crisis"
1924
+ duration = 5475
1925
+ }
1926
+ shahrizor_area = {
1927
+ limit = {
1928
+ NOT = { is_core = ROOT }
1929
+ NOT = { is_permanent_claim = ROOT }
1930
+ }
1931
+ add_permanent_claim = ROOT
1932
+ }
1933
+ azerbaijan_area = {
1934
+ limit = {
1935
+ NOT = { is_core = ROOT }
1936
+ NOT = { is_permanent_claim = ROOT }
1937
+ }
1938
+ add_permanent_claim = ROOT
1939
+ }
1940
+ iraq_e_ajam_area = {
1941
+ limit = {
1942
+ NOT = { is_core = ROOT }
1943
+ NOT = { is_permanent_claim = ROOT }
1944
+ }
1945
+ add_permanent_claim = ROOT
1946
+ }
1947
+ tabarestan_area = {
1948
+ limit = {
1949
+ NOT = { is_core = ROOT }
1950
+ NOT = { is_permanent_claim = ROOT }
1951
+ }
1952
+ add_permanent_claim = ROOT
1953
+ }
1954
+ luristan_area = {
1955
+ limit = {
1956
+ NOT = { is_core = ROOT }
1957
+ NOT = { is_permanent_claim = ROOT }
1958
+ }
1959
+ add_permanent_claim = ROOT
1960
+ }
1961
+ }
1962
+ }
1963
+
1964
+ qara_qoyunlu_heart_of_iran = {
1965
+ icon = mission_unite_home_region
1966
+ required_missions = { qara_qoyunlu_princes_of_persia }
1967
+ position = 3
1968
+
1969
+ provinces_to_highlight = {
1970
+ OR = {
1971
+ area = tabarestan_area
1972
+ area = azerbaijan_area
1973
+ area = iraq_e_ajam_area
1974
+ area = shahrizor_area
1975
+ area = luristan_area
1976
+ }
1977
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1978
+ }
1979
+
1980
+ trigger = {
1981
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1982
+ OR = {
1983
+ area = tabarestan_area
1984
+ area = azerbaijan_area
1985
+ area = iraq_e_ajam_area
1986
+ area = shahrizor_area
1987
+ area = luristan_area
1988
+ }
1989
+ value = 12
1990
+ }
1991
+ }
1992
+
1993
+ effect = {
1994
+ add_adm_power = 100
1995
+ add_country_modifier = {
1996
+ name = "turkoman_triumphant_conquest"
1997
+ duration = 5475
1998
+ }
1999
+ custom_tooltip = turkoman_timurid_morale_tt
2000
+ birjand_area = {
2001
+ limit = {
2002
+ NOT = { is_core = ROOT }
2003
+ NOT = { is_permanent_claim = ROOT }
2004
+ }
2005
+ add_permanent_claim = ROOT
2006
+ }
2007
+ mashhad_area = {
2008
+ limit = {
2009
+ NOT = { is_core = ROOT }
2010
+ NOT = { is_permanent_claim = ROOT }
2011
+ }
2012
+ add_permanent_claim = ROOT
2013
+ }
2014
+ herat_area = {
2015
+ limit = {
2016
+ NOT = { is_core = ROOT }
2017
+ NOT = { is_permanent_claim = ROOT }
2018
+ }
2019
+ add_permanent_claim = ROOT
2020
+ }
2021
+ persia_region = {
2022
+ limit = {
2023
+ NOT = { is_core = ROOT }
2024
+ NOT = { is_permanent_claim = ROOT }
2025
+ }
2026
+ add_permanent_claim = ROOT
2027
+ }
2028
+ if = {
2029
+ limit = {
2030
+ any_country = {
2031
+ is_subject_of = TIM
2032
+ ROOT = {
2033
+ is_supporting_independence_of = PREV
2034
+ }
2035
+ }
2036
+ }
2037
+ custom_tooltip = turkoman_support_indep_tt_yes
2038
+ tooltip = {
2039
+ add_country_modifier = {
2040
+ name = "turkoman_plotting_timurid_donwfall"
2041
+ duration = 7300
2042
+ }
2043
+ }
2044
+ }
2045
+ else = {
2046
+ custom_tooltip = turkoman_support_indep_tt_no
2047
+ tooltip = {
2048
+ add_country_modifier = {
2049
+ name = "turkoman_plotting_timurid_donwfall"
2050
+ duration = 7300
2051
+ }
2052
+ }
2053
+ }
2054
+ hidden_effect = {
2055
+ if = {
2056
+ limit = {
2057
+ any_country = {
2058
+ is_subject_of = TIM
2059
+ ROOT = {
2060
+ is_supporting_independence_of = PREV
2061
+ }
2062
+ }
2063
+ }
2064
+ add_country_modifier = {
2065
+ name = "turkoman_plotting_timurid_donwfall"
2066
+ duration = 7300
2067
+ }
2068
+ }
2069
+ }
2070
+ }
2071
+ }
2072
+
2073
+ qara_qoyunlu_dethrone_the_timurids = {
2074
+ icon = aq_qoyunlu_dethrone_the_timurids
2075
+ required_missions = { qara_qoyunlu_heart_of_iran }
2076
+ position = 4
2077
+
2078
+ provinces_to_highlight = {
2079
+ OR = {
2080
+ area = tabarestan_area
2081
+ area = azerbaijan_area
2082
+ area = iraq_e_ajam_area
2083
+ area = shahrizor_area
2084
+ area = luristan_area
2085
+ province_id = 446
2086
+ }
2087
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2088
+ }
2089
+
2090
+ trigger = {
2091
+ 446 = {
2092
+ country_or_non_sovereign_subject_holds = ROOT
2093
+ }
2094
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2095
+ OR = {
2096
+ area = tabarestan_area
2097
+ area = azerbaijan_area
2098
+ area = iraq_e_ajam_area
2099
+ area = shahrizor_area
2100
+ area = luristan_area
2101
+ }
2102
+ value = 8
2103
+ }
2104
+ }
2105
+
2106
+ effect = {
2107
+ add_prestige_or_monarch_power = { amount = 25 }
2108
+ add_country_modifier = {
2109
+ name = "turkoman_bane_timurids"
2110
+ duration = -1
2111
+ }
2112
+ khorasan_region = {
2113
+ limit = {
2114
+ NOT = { is_core = ROOT }
2115
+ NOT = { is_permanent_claim = ROOT }
2116
+ }
2117
+ add_permanent_claim = ROOT
2118
+ }
2119
+ if = {
2120
+ limit = {
2121
+ NOT = {
2122
+ any_country = {
2123
+ dynasty = "Timurid"
2124
+ }
2125
+ }
2126
+ }
2127
+ custom_tooltip = turkoman_no_timurids_tt_yes
2128
+ tooltip = {
2129
+ add_power_projection = {
2130
+ type = mission_rewards_power_projection
2131
+ amount = 25
2132
+ }
2133
+ add_ruler_modifier = {
2134
+ name = "turkoman_tamerlane_bloodline"
2135
+ duration = -1
2136
+ }
2137
+ }
2138
+ }
2139
+ else = {
2140
+ custom_tooltip = turkoman_no_timurids_tt_no
2141
+ tooltip = {
2142
+ add_power_projection = {
2143
+ type = mission_rewards_power_projection
2144
+ amount = 25
2145
+ }
2146
+ add_ruler_modifier = {
2147
+ name = "turkoman_tamerlane_bloodline"
2148
+ duration = -1
2149
+ }
2150
+ }
2151
+ }
2152
+ }
2153
+ }
2154
+
2155
+ qara_qoyunlu_legacy_of_seljuk = {
2156
+ icon = per_the_seljuk_successors
2157
+ required_missions = { qara_qoyunlu_dethrone_the_timurids }
2158
+ position = 5
2159
+
2160
+ provinces_to_highlight = {
2161
+ OR = {
2162
+ region = persia_region
2163
+ region = khorasan_region
2164
+ }
2165
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2166
+ }
2167
+
2168
+ trigger = {
2169
+ persia_region = {
2170
+ type = all
2171
+ country_or_non_sovereign_subject_holds = ROOT
2172
+ }
2173
+ khorasan_region = {
2174
+ type = all
2175
+ country_or_non_sovereign_subject_holds = ROOT
2176
+ }
2177
+ }
2178
+
2179
+ effect = {
2180
+ country_event = { id = flavor_turkoman.1 }
2181
+ custom_tooltip = turkoman_legacy_of_seljuk_insight
2182
+ change_ruler_stat = {
2183
+ type = adm
2184
+ amount = 2
2185
+ }
2186
+ custom_tooltip = turkoman_empty
2187
+ transcaspia_area = {
2188
+ limit = {
2189
+ NOT = { is_core = ROOT }
2190
+ NOT = { is_permanent_claim = ROOT }
2191
+ }
2192
+ add_permanent_claim = ROOT
2193
+ }
2194
+ transoxiana_area = {
2195
+ limit = {
2196
+ NOT = { is_core = ROOT }
2197
+ NOT = { is_permanent_claim = ROOT }
2198
+ }
2199
+ add_permanent_claim = ROOT
2200
+ }
2201
+ kyzylkum_area = {
2202
+ limit = {
2203
+ NOT = { is_core = ROOT }
2204
+ NOT = { is_permanent_claim = ROOT }
2205
+ }
2206
+ add_permanent_claim = ROOT
2207
+ }
2208
+ termez_area = {
2209
+ limit = {
2210
+ NOT = { is_core = ROOT }
2211
+ NOT = { is_permanent_claim = ROOT }
2212
+ }
2213
+ add_permanent_claim = ROOT
2214
+ }
2215
+ khiva_area = {
2216
+ limit = {
2217
+ NOT = { is_core = ROOT }
2218
+ NOT = { is_permanent_claim = ROOT }
2219
+ }
2220
+ add_permanent_claim = ROOT
2221
+ }
2222
+ }
2223
+ }
2224
+
2225
+ qara_qoyunlu_the_oghuz_homeland = {
2226
+ icon = mission_lit_harness_steppes
2227
+ required_missions = { qara_qoyunlu_legacy_of_seljuk }
2228
+ position = 7
2229
+
2230
+ provinces_to_highlight = {
2231
+ OR = {
2232
+ area = termez_area
2233
+ area = kyzylkum_area
2234
+ area = transoxiana_area
2235
+ area = transcaspia_area
2236
+ area = khiva_area
2237
+ }
2238
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
2239
+ }
2240
+
2241
+ trigger = {
2242
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2243
+ OR = {
2244
+ area = termez_area
2245
+ area = kyzylkum_area
2246
+ area = transoxiana_area
2247
+ area = transcaspia_area
2248
+ area = khiva_area
2249
+ }
2250
+ value = 12
2251
+ }
2252
+ }
2253
+
2254
+ effect = {
2255
+ if = {
2256
+ limit = {
2257
+ has_dlc = "The Cossacks"
2258
+ }
2259
+ custom_tooltip = turkoman_tribes_access_tt
2260
+ set_country_flag = turkoman_unlocked_tribes
2261
+ }
2262
+ add_country_modifier = {
2263
+ name = "turkoman_sons_of_conquerors"
2264
+ duration = -1
2265
+ }
2266
+ }
2267
+ }
2268
+
2269
+ }
missions/KoK_Yemen_Missions.txt ADDED
@@ -0,0 +1,1513 @@
1
+ KoK_YEM_missions_1 = {
2
+ slot = 1
3
+ generic = no
4
+ ai = yes
5
+ potential_on_load = {
6
+ has_dlc = "King of Kings"
7
+ }
8
+ potential = {
9
+ YEM_is_yemeni_nation = yes
10
+ has_dlc = "King of Kings"
11
+ NOT = { map_setup = map_setup_random }
12
+ }
13
+ has_country_shield = yes
14
+
15
+ YEM_rassids = {
16
+ icon = mission_reclaim_morocco
17
+ required_missions = { YEM_an_imminent_collapse }
18
+ position = 2
19
+ provinces_to_highlight = {
20
+ OR = {
21
+ province_id = 390
22
+ province_id = 2346
23
+ province_id = 391
24
+ }
25
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
26
+ }
27
+ trigger = {
28
+ 390 = { country_or_non_sovereign_subject_holds = ROOT }
29
+ 2346 = { country_or_non_sovereign_subject_holds = ROOT }
30
+ 391 = { country_or_non_sovereign_subject_holds = ROOT }
31
+ }
32
+ effect = {
33
+ add_mil_power = 50
34
+
35
+ custom_tooltip = " "
36
+
37
+ if = {
38
+ limit = {
39
+ religion = shiite
40
+ }
41
+ add_country_modifier = {
42
+ name = YEM_the_dawah
43
+ duration = 7300
44
+ }
45
+
46
+ custom_tooltip = YEM_for_every_shia_province
47
+ hidden_effect = {
48
+ if = {
49
+ limit = {
50
+ num_of_owned_provinces_with = {
51
+ religion = shiite
52
+ value = 6
53
+ }
54
+ }
55
+ add_yearly_manpower = 1.5
56
+ }
57
+ else = {
58
+ every_owned_province = {
59
+ limit = {
60
+ religion = shiite
61
+ }
62
+ ROOT = {
63
+ add_yearly_manpower = 0.25
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ else = {
70
+ add_country_modifier = {
71
+ name = YEM_defeated_the_zindiqs
72
+ duration = 10950
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ YEM_islamic_ambitions = {
79
+ icon = mission_into_arabia
80
+ required_missions = { YEM_unite_yemen YEM_rassids }
81
+ position = 4
82
+ provinces_to_highlight = {
83
+ OR = {
84
+ province_id = 384
85
+ province_id = 385
86
+ }
87
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
88
+ }
89
+ trigger = {
90
+ 384 = { country_or_non_sovereign_subject_holds = ROOT }
91
+ 385 = { country_or_non_sovereign_subject_holds = ROOT }
92
+ }
93
+ effect = {
94
+ give_claims = { region = arabia_region }
95
+
96
+ custom_tooltip = " "
97
+
98
+ if = {
99
+ limit = {
100
+ has_dlc = "Leviathan"
101
+ }
102
+ custom_tooltip = YEM_upgrade_kaaba
103
+ custom_tooltip = " "
104
+ }
105
+ else = {
106
+ add_country_modifier = {
107
+ name = YEM_caravans_to_mecca
108
+ duration = -1
109
+ }
110
+ }
111
+
112
+ if = {
113
+ limit = {
114
+ has_dlc = "Mandate of Heaven"
115
+ }
116
+ add_splendor = 400
117
+ }
118
+ else = {
119
+ add_prestige_or_monarch_power = { amount = 25 }
120
+ }
121
+ }
122
+ }
123
+
124
+ YEM_arabian_ambitions = {
125
+ icon = mission_arabian_fort
126
+ required_missions = { YEM_islamic_ambitions }
127
+ position = 5
128
+ provinces_to_highlight = {
129
+ region = arabia_region
130
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
131
+ }
132
+ trigger = {
133
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
134
+ region = arabia_region
135
+ value = 40
136
+ }
137
+ total_development = 300
138
+ }
139
+ effect = {
140
+ give_claims = { region = egypt_region }
141
+ give_claims = { region = mashriq_region }
142
+
143
+ custom_tooltip = " "
144
+
145
+ add_permanent_power_projection = {
146
+ type = yem_permanent_power_projection
147
+ amount = 5
148
+ }
149
+
150
+ custom_tooltip = " "
151
+
152
+ custom_tooltip = YEM_no_more_tech_req
153
+ set_country_flag = free_arabia_forming_flag
154
+ }
155
+ }
156
+ }
157
+
158
+ KoK_YEM_missions_2 = {
159
+ slot = 2
160
+ generic = no
161
+ ai = yes
162
+ potential_on_load = {
163
+ has_dlc = "King of Kings"
164
+ }
165
+ potential = {
166
+ YEM_is_yemeni_nation = yes
167
+ has_dlc = "King of Kings"
168
+ NOT = { map_setup = map_setup_random }
169
+ }
170
+ has_country_shield = yes
171
+
172
+ YEM_an_imminent_collapse = {
173
+ icon = mission_imperial_cities
174
+ required_missions = { }
175
+ position = 1
176
+ provinces_to_highlight = {
177
+ }
178
+ trigger = {
179
+ OR = {
180
+ army_size_percentage = 0.9
181
+ is_at_war = yes
182
+ }
183
+ num_of_generals = 1
184
+ }
185
+ effect = {
186
+ give_claims = { area = yemen_area }
187
+ give_claims = { area = upper_yemen_area }
188
+ give_claims = { area = hadramut_area }
189
+ give_claims = { area = mahra_area }
190
+ give_claims = { area = asir_area }
191
+ give_claims = { area = tihama_al_yemen_area }
192
+
193
+ custom_tooltip = " "
194
+
195
+ if = {
196
+ limit = {
197
+ tag = RAS
198
+ }
199
+ add_country_modifier = {
200
+ name = YEM_to_play_the_cards_right
201
+ duration = 3650
202
+ }
203
+ }
204
+
205
+ if = {
206
+ limit = {
207
+ tag = YEM
208
+ }
209
+ add_country_modifier = {
210
+ name = YEM_fight_for_survival
211
+ duration = 3650
212
+ }
213
+ }
214
+
215
+ if = {
216
+ limit = {
217
+ tag = ADE
218
+ }
219
+ add_country_modifier = {
220
+ name = YEM_triumph_of_the_tahirids
221
+ duration = 3650
222
+ }
223
+ }
224
+
225
+ if = {
226
+ limit = {
227
+ NOT = {
228
+ OR = {
229
+ tag = ADE
230
+ tag = YEM
231
+ tag = RAS
232
+ }
233
+ }
234
+ }
235
+ add_country_modifier = {
236
+ name = YEM_exploit_the_chaos
237
+ duration = 3650
238
+ }
239
+ }
240
+ }
241
+ }
242
+
243
+ YEM_rasulids = {
244
+ icon = mission_break_sicily
245
+ required_missions = { YEM_an_imminent_collapse }
246
+ position = 2
247
+ provinces_to_highlight = {
248
+ if = {
249
+ limit = {
250
+ root = {
251
+ tag = YEM
252
+ not = { has_country_flag = formed_yemen_flag }
253
+ }
254
+ }
255
+ province_id = 390
256
+ }
257
+ else = {
258
+ OR = {
259
+ owned_by = YEM
260
+ province_id = 4280 # Taiz
261
+ }
262
+ }
263
+ not = { owned_by = root }
264
+ }
265
+ trigger = {
266
+ OR = {
267
+ tag = YEM
268
+ NOT = { exists = YEM }
269
+ }
270
+ if = {
271
+ limit = {
272
+ tag = YEM
273
+ not = { has_country_flag = formed_yemen_flag }
274
+ }
275
+ 390 = { owned_by = ROOT }
276
+ }
277
+ else = {
278
+ 4280 = { owned_by = ROOT }
279
+ }
280
+ }
281
+ effect = {
282
+ if = {
283
+ limit = {
284
+ tag = YEM
285
+ not = { has_country_flag = formed_yemen_flag }
286
+ }
287
+ 390 = {
288
+ add_base_tax = 1
289
+ add_base_production = 1
290
+ add_base_manpower = 1
291
+ }
292
+ }
293
+ else = {
294
+ 4280 = {
295
+ add_base_tax = 1
296
+ add_base_production = 1
297
+ add_base_manpower = 1
298
+ }
299
+ }
300
+ custom_tooltip = " "
301
+
302
+ add_country_modifier = {
303
+ name = YEM_capture_of_taiz
304
+ duration = 9125
305
+ }
306
+
307
+ add_dip_power = 50
308
+ }
309
+ }
310
+
311
+ YEM_unite_yemen = {
312
+ icon = mission_pacify_the_berbers
313
+ required_missions = { YEM_rassids YEM_rasulids YEM_tahirids }
314
+ position = 3
315
+ provinces_to_highlight = {
316
+ OR = {
317
+ area = tihama_al_yemen_area
318
+ area = yemen_area
319
+ area = asir_area
320
+ area = mahra_area
321
+ area = upper_yemen_area
322
+ area = hadramut_area
323
+ }
324
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
325
+ }
326
+ trigger = {
327
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
328
+ OR = {
329
+ area = tihama_al_yemen_area
330
+ area = yemen_area
331
+ area = asir_area
332
+ area = mahra_area
333
+ area = upper_yemen_area
334
+ area = hadramut_area
335
+ }
336
+ value = 14
337
+ }
338
+ }
339
+ effect = {
340
+ add_stability_or_adm_power = yes
341
+
342
+ custom_tooltip = " "
343
+
344
+ give_claims = { area = tabuk_area }
345
+ give_claims = { area = mecca_area }
346
+ give_claims = { area = medina_area }
347
+
348
+ give_claims = { area = aussa_area }
349
+ give_claims = { area = ifat_area }
350
+ give_claims = { area = somaliland_area }
351
+ give_claims = { area = majarteen_area }
352
+
353
+ custom_tooltip = " "
354
+
355
+ if = {
356
+ limit = {
357
+ NOT = { government_rank = 2 }
358
+ }
359
+ set_government_rank = 2
360
+ custom_tooltip = " "
361
+ }
362
+
363
+ if = {
364
+ limit = {
365
+ NOT = { current_age = age_of_discovery }
366
+ }
367
+ add_mil_power = 200
368
+ }
369
+ else = {
370
+ add_country_modifier = {
371
+ name = YEM_rise_of_yemen
372
+ duration = -1
373
+ desc = YEM_age_of_discovery
374
+ }
375
+ }
376
+ }
377
+ }
378
+
379
+ YEM_across_the_strait = {
380
+ icon = mission_retake_ceuta
381
+ required_missions = { YEM_unite_yemen }
382
+ position = 4
383
+ provinces_to_highlight = {
384
+ OR = {
385
+ area = aussa_area
386
+ area = ifat_area
387
+ area = somaliland_area
388
+ area = majarteen_area
389
+ }
390
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
391
+ }
392
+ trigger = {
393
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
394
+ OR = {
395
+ area = aussa_area
396
+ area = ifat_area
397
+ area = somaliland_area
398
+ area = majarteen_area
399
+ }
400
+ value = 14
401
+ }
402
+ }
403
+ effect = {
404
+ give_claims = { area = mogadishu_area }
405
+ give_claims = { area = red_sea_coast_area }
406
+
407
+ custom_tooltip = " "
408
+
409
+ create_general_with_pips = {
410
+ tradition = 70
411
+ add_manuever = 2
412
+ }
413
+
414
+ custom_tooltip = " "
415
+
416
+ country_event_with_option_insight = {
417
+ id = flavor_YEM.2
418
+ option_1 = "
419
+ add_years_of_owned_provinces_production_income = {
420
+ years = 20
421
+ trigger = {
422
+ trade_goods = incense
423
+ }
424
+ custom_tooltip = YEM_prod_from_incense
425
+ }
426
+ "
427
+ option_2 = "
428
+ add_accepted_culture_or_dip_power = { culture = somali dip_reward = yes }
429
+ "
430
+ }
431
+ }
432
+ }
433
+ }
434
+
435
+ KoK_YEM_missions_3 = {
436
+ slot = 3
437
+ generic = no
438
+ ai = yes
439
+ potential_on_load = {
440
+ has_dlc = "King of Kings"
441
+ }
442
+ potential = {
443
+ YEM_is_yemeni_nation = yes
444
+ has_dlc = "King of Kings"
445
+ NOT = { map_setup = map_setup_random }
446
+ }
447
+ has_country_shield = yes
448
+
449
+ YEM_tahirids = {
450
+ icon = mission_control_surat
451
+ required_missions = { YEM_an_imminent_collapse }
452
+ position = 2
453
+ provinces_to_highlight = {
454
+ OR = {
455
+ province_id = 388
456
+ if = {
457
+ limit = {
458
+ ROOT = {
459
+ NOT = { tag = ADE }
460
+ }
461
+ }
462
+ owned_by = ADE
463
+ }
464
+ else = { always = no }
465
+ }
466
+ }
467
+ trigger = {
468
+ 388 = { owned_by = ROOT }
469
+ OR = {
470
+ NOT = { exists = ADE }
471
+ tag = ADE
472
+ }
473
+ }
474
+ effect = {
475
+ give_claims = { area = dhofar_area }
476
+ give_claims = { area = mascat_area }
477
+ give_claims = { area = pirate_coast_area }
478
+ give_claims = { area = oman_area }
479
+ give_claims = { area = mogostan_area }
480
+
481
+ custom_tooltip = " "
482
+
483
+ add_adm_power = 50
484
+
485
+ custom_tooltip = " "
486
+
487
+ if = {
488
+ limit = {
489
+ tag = YEM
490
+ NOT = { was_tag = ADE }
491
+ }
492
+ add_country_modifier = {
493
+ name = YEM_tahirid_magnates
494
+ duration = 7300
495
+ }
496
+ }
497
+ else = {
498
+ add_country_modifier = {
499
+ name = YEM_seizure_of_aden
500
+ duration = 7300
501
+ }
502
+ }
503
+ }
504
+ }
505
+
506
+ YEM_defeat_hormuz = {
507
+ icon = mission_dharma_mission_arabian_trade
508
+ required_missions = { YEM_tahirids }
509
+ position = 3
510
+ provinces_to_highlight = {
511
+ OR = {
512
+ AND = {
513
+ OR = {
514
+ owned_by = ORM
515
+ owned_by = OMA
516
+ }
517
+ NOT = { owned_by = ROOT }
518
+ }
519
+ AND = {
520
+ OR = {
521
+ area = dhofar_area
522
+ area = mascat_area
523
+ area = pirate_coast_area
524
+ area = oman_area
525
+ area = mogostan_area
526
+ }
527
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
528
+ }
529
+ }
530
+ }
531
+ trigger = {
532
+ NOT = { exists = ORM }
533
+ NOT = { exists = OMA }
534
+ OR = {
535
+ num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
536
+ OR = {
537
+ area = dhofar_area
538
+ area = mascat_area
539
+ area = pirate_coast_area
540
+ area = oman_area
541
+ area = mogostan_area
542
+ }
543
+ value = 14
544
+ }
545
+ 400 = {
546
+ trade_share = {
547
+ country = ROOT
548
+ share = 15
549
+ }
550
+ }
551
+ }
552
+ }
553
+ effect = {
554
+ country_event_with_effect_insight = {
555
+ id = flavor_YEM.1
556
+ effect = "
557
+ add_power_projection_mission = { amount = 30 }
558
+ custom_tooltip = \" \"
559
+ 4346 = {
560
+ add_trade_modifier = {
561
+ who = ROOT
562
+ duration = -1
563
+ power = 100
564
+ key = YEM_competition_less
565
+ }
566
+ }
567
+ custom_tooltip = \" \"
568
+ create_admiral = { tradition = 60 }
569
+ "
570
+ }
571
+ }
572
+ }
573
+ }
574
+
575
+ KoK_YEM_missions_4 = {
576
+ slot = 4
577
+ generic = no
578
+ ai = yes
579
+ potential_on_load = {
580
+ has_dlc = "King of Kings"
581
+ }
582
+ potential = {
583
+ YEM_is_yemeni_nation = yes
584
+ has_dlc = "King of Kings"
585
+ NOT = { map_setup = map_setup_random }
586
+ }
587
+ has_country_shield = yes
588
+
589
+ YEM_taiz = {
590
+ icon = mission_patronize_art_and_religion
591
+ required_missions = { }
592
+ position = 1
593
+ provinces_to_highlight = {
594
+ province_id = 4280
595
+ }
596
+ trigger = {
597
+ 4280 = {
598
+ has_tax_building_trigger = yes
599
+ num_of_times_improved = 5
600
+ owned_by = ROOT
601
+ }
602
+ }
603
+ effect = {
604
+ 4280 = {
605
+ upgrade_tax_building = yes
606
+
607
+ custom_tooltip = " "
608
+
609
+ add_province_modifier = {
610
+ name = YEM_ashrafiya_mosque
611
+ duration = -1
612
+ }
613
+ }
614
+
615
+ add_country_modifier = {
616
+ name = YEM_peaceful_investments
617
+ duration = 10950
618
+ }
619
+ }
620
+ }
621
+
622
+ YEM_aden = {
623
+ icon = mission_bengal_entrepot
624
+ required_missions = { YEM_tahirids YEM_taiz }
625
+ position = 3
626
+ provinces_to_highlight = {
627
+ province_id = 388
628
+ }
629
+ trigger = {
630
+ 388 = {
631
+ owned_by = ROOT
632
+ has_trade_building_trigger = yes
633
+ if = {
634
+ limit = {
635
+ has_dlc = "Dharma"
636
+ }
637
+ province_has_center_of_trade_of_level = 2
638
+ }
639
+ development = 15
640
+ }
641
+ }
642
+ effect = {
643
+ 388 = {
644
+ upgrade_trade_building = yes
645
+
646
+ custom_tooltip = " "
647
+
648
+ add_province_modifier = {
649
+ name = YEM_city_of_prosperity
650
+ duration = -1
651
+ }
652
+ }
653
+
654
+ add_years_of_trade_income = {
655
+ years = 2
656
+ custom_tooltip = BYZ_add_2_years_of_trade_income
657
+ }
658
+ }
659
+ }
660
+
661
+ YEM_masters_of_arabian_sea = {
662
+ icon = mission_coromandel_trade
663
+ required_missions = { YEM_aden YEM_defeat_hormuz YEM_secure_indian_trade }
664
+ position = 4
665
+ provinces_to_highlight = {
666
+ OR = {
667
+ province_id = 504
668
+ province_id = 1340
669
+ }
670
+ NOT = {
671
+ trade_share = {
672
+ country = ROOT
673
+ share = 25
674
+ }
675
+ }
676
+ }
677
+ trigger = {
678
+ num_of_centers_of_trade = 15
679
+ 504 = {
680
+ trade_share = {
681
+ country = ROOT
682
+ share = 25
683
+ }
684
+ }
685
+ 1340 = {
686
+ trade_share = {
687
+ country = ROOT
688
+ share = 25
689
+ }
690
+ }
691
+ monthly_income = 50
692
+ }
693
+ effect = {
694
+ if = {
695
+ limit = {
696
+ has_dlc = "Cradle of Civilization"
697
+ }
698
+ custom_tooltip = YEM_upgrade_propagate_religion_to_30
699
+ set_country_flag = 30_trade_power_for_propogate_religion
700
+ }
701
+ else = {
702
+ custom_tooltip = YEM_upgrade_trade_ships_privilege_to_30_ship_trade_power
703
+ set_country_flag = YEM_upgrade_trade_ships_priv_2
704
+ }
705
+
706
+ custom_tooltip = " "
707
+
708
+ add_country_modifier = {
709
+ name = ARB_arabian_sea_trade
710
+ duration = -1
711
+ }
712
+ }
713
+ }
714
+
715
+ YEM_eastern_hub = {
716
+ icon = mission_coromandel_expansion
717
+ required_missions = { YEM_masters_of_arabian_sea YEM_coffee }
718
+ position = 6
719
+ provinces_to_highlight = {
720
+ any_trade_node_member_province = {
721
+ is_capital_of = ROOT
722
+ }
723
+ is_trade_node_province = yes
724
+ }
725
+ trigger = {
726
+ home_trade_node = {
727
+ highest_value_trade_node = yes
728
+ }
729
+ monthly_income = 300
730
+ }
731
+ effect = {
732
+ custom_tooltip = YEM_master_of_mint
733
+
734
+ custom_tooltip = " "
735
+
736
+ add_country_modifier = {
737
+ name = "thalassocracy"
738
+ duration = -1
739
+ }
740
+ unlock_government_reform = {
741
+ government_reform = thalassocracy_reform
742
+ }
743
+ change_government_reform_progress = 50
744
+ }
745
+ }
746
+ }
747
+
748
+ KoK_YEM_missions_5 = {
749
+ slot = 5
750
+ generic = no
751
+ ai = yes
752
+ potential_on_load = {
753
+ has_dlc = "King of Kings"
754
+ }
755
+ potential = {
756
+ YEM_is_yemeni_nation = yes
757
+ has_dlc = "King of Kings"
758
+ NOT = { map_setup = map_setup_random }
759
+ }
760
+ has_country_shield = yes
761
+
762
+ YEM_build_a_navy = {
763
+ icon = mission_growth_of_surat
764
+ required_missions = { }
765
+ position = 1
766
+ provinces_to_highlight = {
767
+ province_id = 387
768
+ NOT = { owned_by = ROOT }
769
+ }
770
+ trigger = {
771
+ navy_size = 20
772
+ num_of_admirals = 1
773
+ 387 = {
774
+ owned_by = ROOT
775
+ }
776
+ }
777
+ effect = {
778
+ 387 = {
779
+ add_province_modifier = {
780
+ name = YEM_gates_of_lamentation
781
+ duration = -1
782
+ }
783
+ }
784
+
785
+ complex_dynamic_effect = {
786
+ first_custom_tooltip = YEM_if_at_least_50_fraction_of_light_ship
787
+ first_limit = "
788
+ light_ship_fraction = 0.5
789
+ "
790
+ first_effect = "
791
+ add_mercantilism = 2
792
+ add_country_modifier = {
793
+ name = YEM_destined_for_spice_trade
794
+ duration = 10950
795
+ }
796
+ "
797
+ }
798
+ complex_dynamic_effect = {
799
+ first_custom_tooltip = YEM_if_at_least_galley_fraction
800
+ first_limit = "
801
+ OR = {
802
+ galley_fraction = 0.3
803
+ heavy_ship_fraction = 0.15
804
+ }
805
+ "
806
+ first_effect = "
807
+ add_navy_tradition = 10
808
+ add_country_modifier = {
809
+ name = YEM_guardians_of_the_gates
810
+ duration = 7300
811
+ }
812
+ "
813
+ }
814
+ }
815
+ }
816
+
817
+ YEM_secure_indian_trade = {
818
+ icon = mission_dominate_persian_gulf
819
+ required_missions = { YEM_build_a_navy }
820
+ position = 3
821
+ provinces_to_highlight = {
822
+ OR = {
823
+ province_id = 504
824
+ province_id = 1340
825
+ }
826
+ NOT = {
827
+ trade_share = {
828
+ country = ROOT
829
+ share = 15
830
+ }
831
+ }
832
+ }
833
+ trigger = {
834
+ num_ships_protecting_trade = 25
835
+ OR = {
836
+ 504 = { #gujarat
837
+ trade_share = {
838
+ country = ROOT
839
+ share = 15
840
+ }
841
+ }
842
+ 1340 = { #coromandel
843
+ trade_share = {
844
+ country = ROOT
845
+ share = 15
846
+ }
847
+ }
848
+ }
849
+ }
850
+ effect = {
851
+ if = {
852
+ limit = {
853
+ has_dlc = "Cradle of Civilization"
854
+ }
855
+ custom_tooltip = YEM_upgrade_propagate_religion
856
+ set_country_flag = YEM_propagation_gives_navy_tradition
857
+ set_country_flag = 40_trade_power_for_propogate_religion
858
+ }
859
+ else = {
860
+ custom_tooltip = YEM_upgrade_trade_ships_privilege_to_20_ship_trade_power
861
+ set_country_flag = YEM_upgrade_trade_ships_priv_1
862
+ }
863
+
864
+ custom_tooltip = " "
865
+
866
+ add_mercantilism = 3
867
+ }
868
+ }
869
+
870
+ YEM_mukha = {
871
+ icon = mission_arabian_ports
872
+ required_missions = { }
873
+ position = 4
874
+ provinces_to_highlight = {
875
+ province_id = 387
876
+ }
877
+ trigger = {
878
+ 387 = {
879
+ has_production_building_trigger = yes
880
+ development = 20
881
+ owned_by = ROOT
882
+ has_shipyard_building_trigger = yes
883
+ }
884
+ }
885
+ effect = {
886
+ add_years_of_owned_provinces_production_income = {
887
+ years = 10
888
+ trigger = {
889
+ trade_goods = coffee
890
+ }
891
+ custom_tooltip = YEM_prod_from_coffee
892
+ }
893
+ if = {
894
+ limit = {
895
+ 387 = {
896
+ trade_goods = coffee
897
+ NOT = { has_building = plantations }
898
+ }
899
+ }
900
+ 387 = {
901
+ add_building = plantations
902
+ custom_tooltip = " "
903
+ }
904
+ }
905
+ 387 = {
906
+ upgrade_production_building = yes
907
+ }
908
+
909
+ }
910
+ }
911
+
912
+ YEM_coffee = {
913
+ icon = yem_coffee
914
+ required_missions = { YEM_mukha }
915
+ position = 5
916
+ provinces_to_highlight = {
917
+ trade_goods = coffee
918
+ owned_by = ROOT
919
+ }
920
+ trigger = {
921
+ trading_part = {
922
+ trade_goods = coffee
923
+ value = 0.4
924
+ }
925
+ trade_goods_produced_amount = {
926
+ trade_goods = coffee
927
+ amount = 10
928
+ }
929
+
930
+ if = {
931
+ limit = {
932
+ has_dlc = "Mare Nostrum" #DLC enables promote mercantilism, making this trigger viable
933
+ }
934
+ mercantilism = 40
935
+ }
936
+ }
937
+ effect = {
938
+ custom_tooltip = YEM_enable_coffee_monopoly_privilege
939
+
940
+ custom_tooltip = " "
941
+
942
+ add_years_of_owned_provinces_production_income = {
943
+ years = 2
944
+ trigger = {
945
+ }
946
+ custom_tooltip = YEM_prod_from_all_provs
947
+ }
948
+
949
+ custom_tooltip = " "
950
+
951
+ country_event_with_effect_insight = {
952
+ id = flavor_YEM.3
953
+ effect = "
954
+ change_price = {
955
+ trade_goods = coffee
956
+ key = YEM_coffee_price_boost
957
+ value = 0.25
958
+ duration = -1
959
+ }
960
+ "
961
+ }
962
+ }
963
+ }
964
+ }
965
+
966
+ KoK_YEM_missions_2_religious = {
967
+ slot = 2
968
+ generic = no
969
+ ai = yes
970
+ potential_on_load = {
971
+ has_dlc = "King of Kings"
972
+ }
973
+ potential = {
974
+ YEM_is_yemeni_nation = yes
975
+ has_dlc = "King of Kings"
976
+ NOT = {
977
+ OR = {
978
+ tag = RAS
979
+ was_tag = RAS
980
+ }
981
+ }
982
+ NOT = { map_setup = map_setup_random }
983
+ }
984
+ has_country_shield = yes
985
+
986
+ YEM_religious_battlegrounds = {
987
+ icon = mission_turning_the_tables
988
+ required_missions = { }
989
+ position = 5
990
+ provinces_to_highlight = {
991
+ NOT = { religion = ROOT }
992
+ OR = {
993
+ owned_by = ROOT
994
+ any_neighbor_province = {
995
+ owned_by = ROOT
996
+ }
997
+ }
998
+ }
999
+ trigger = {
1000
+ OR = {
1001
+ at_war_with_religious_enemy = yes
1002
+ custom_trigger_tooltip = {
1003
+ tooltip = YEM_converted_3_provs
1004
+ check_variable = { which = num_converted_religion value = 3 }
1005
+ }
1006
+ }
1007
+ }
1008
+ effect = {
1009
+ define_advisor = {
1010
+ type = inquisitor
1011
+ skill = 1
1012
+ culture = ROOT
1013
+ religion = ROOT
1014
+ cost_multiplier = 0.5
1015
+ }
1016
+
1017
+ custom_tooltip = " "
1018
+
1019
+ change_piety_effect = { amount = 0.1 }
1020
+ }
1021
+ }
1022
+
1023
+ YEM_unite_yemen_religiously = {
1024
+ icon = yem_unite_yemen
1025
+ required_missions = { YEM_religious_battlegrounds }
1026
+ position = 6
1027
+ provinces_to_highlight = {
1028
+ OR = {
1029
+ owned_by = RAS
1030
+ AND = {
1031
+ culture = yemeni_culture
1032
+ OR = {
1033
+ NOT = { religion = ROOT }
1034
+ NOT = { owned_by = ROOT }
1035
+ }
1036
+ }
1037
+ }
1038
+ }
1039
+ trigger = {
1040
+ custom_trigger_tooltip = {
1041
+ tooltip = YEM_unified_yemen_tt
1042
+ all_province = {
1043
+ OR = {
1044
+ NOT = { culture = yemeni_culture }
1045
+ AND = {
1046
+ religion = ROOT
1047
+ owned_by = ROOT
1048
+ }
1049
+ }
1050
+ }
1051
+ }
1052
+ NOT = { exists = RAS }
1053
+ stability = 2
1054
+ }
1055
+ effect = {
1056
+ add_country_modifier = {
1057
+ name = YEM_reunited_yemen
1058
+ duration = 18250
1059
+ }
1060
+
1061
+ change_government_reform_progress = 100
1062
+ }
1063
+ }
1064
+ }
1065
+
1066
+ KoK_YEM_missions_3_religious = {
1067
+ slot = 3
1068
+ generic = no
1069
+ ai = yes
1070
+ potential_on_load = {
1071
+ has_dlc = "King of Kings"
1072
+ }
1073
+ potential = {
1074
+ YEM_is_yemeni_nation = yes
1075
+ has_dlc = "King of Kings"
1076
+ NOT = {
1077
+ OR = {
1078
+ tag = RAS
1079
+ was_tag = RAS
1080
+ }
1081
+ }
1082
+ NOT = { map_setup = map_setup_random }
1083
+ }
1084
+ has_country_shield = yes
1085
+
1086
+ YEM_city_of_sanaa_non_ras = {
1087
+ icon = mission_golden_century
1088
+ required_missions = { YEM_religious_battlegrounds }
1089
+ position = 6
1090
+ provinces_to_highlight = {
1091
+ province_id = 390
1092
+ }
1093
+ trigger = {
1094
+ 390 = {
1095
+ owned_by = ROOT
1096
+ religion = ROOT
1097
+ has_tax_building_trigger = yes
1098
+ if = {
1099
+ limit = { has_dlc = "Leviathan" }
1100
+ custom_trigger_tooltip = {
1101
+ tooltip = YEM_city_of_sanaa_ras_tt
1102
+ or = {
1103
+ has_great_project = { tier = 1 type = city_of_sanaa }
1104
+ has_great_project = { tier = 2 type = city_of_sanaa }
1105
+ has_great_project = { tier = 3 type = city_of_sanaa }
1106
+ }
1107
+ }
1108
+ }
1109
+ }
1110
+ }
1111
+ effect = {
1112
+ if = {
1113
+ limit = {
1114
+ has_dlc = "Leviathan"
1115
+ }
1116
+ 390 = {
1117
+ custom_tooltip = YEM_upgrade_city_of_sanaa_non_ras
1118
+ }
1119
+ set_country_flag = YEM_upgrade_city_of_sanaa_non_ras_flag
1120
+ }
1121
+ else = {
1122
+ add_country_modifier = {
1123
+ name = YEM_developing_sanaa
1124
+ duration = 10950
1125
+ }
1126
+ 390 = {
1127
+ upgrade_tax_building = yes
1128
+ }
1129
+ }
1130
+
1131
+ custom_tooltip = " "
1132
+
1133
+ if = {
1134
+ limit = {
1135
+ has_dlc = "Mandate of Heaven"
1136
+ }
1137
+ add_splendor = 400
1138
+ }
1139
+ else = {
1140
+ add_prestige_or_monarch_power = { amount = 25 }
1141
+ }
1142
+ }
1143
+ }
1144
+ }
1145
+
1146
+ KoK_YEM_missions_1_RAS_religious = {
1147
+ slot = 1
1148
+ generic = no
1149
+ ai = yes
1150
+ potential_on_load = {
1151
+ has_dlc = "King of Kings"
1152
+ }
1153
+ potential = {
1154
+ YEM_is_yemeni_nation = yes
1155
+ has_dlc = "King of Kings"
1156
+ OR = {
1157
+ tag = RAS
1158
+ was_tag = RAS
1159
+ }
1160
+ NOT = { map_setup = map_setup_random }
1161
+ }
1162
+ has_country_shield = yes
1163
+
1164
+ YEM_expel_sunnites = {
1165
+ icon = mission_levantine_restoration
1166
+ required_missions = { YEM_dawah }
1167
+ position = 6
1168
+ provinces_to_highlight = {
1169
+ owner = {
1170
+ is_neighbor_of = ROOT
1171
+ NOT = { religion = ROOT }
1172
+ religion_group = ROOT
1173
+ }
1174
+ }
1175
+ trigger = {
1176
+ custom_trigger_tooltip = {
1177
+ tooltip = YEM_win_10_wars_against_heretics
1178
+ check_variable = {
1179
+ which = num_of_wars_won_against_heretics
1180
+ value = 10
1181
+ }
1182
+ }
1183
+ }
1184
+ effect = {
1185
+ add_country_modifier = {
1186
+ name = YEM_superiority_of_zaid_and_ali
1187
+ duration = 10950
1188
+ }
1189
+
1190
+ country_event_with_option_insight = {
1191
+ id = flavor_YEM.5
1192
+ option_1 = "
1193
+ custom_tooltip = YEM_sanction_holy_war_claims_areas
1194
+ "
1195
+ option_2 = "
1196
+ custom_tooltip = YEM_sanction_holy_war_claims_permanent
1197
+ "
1198
+ }
1199
+ }
1200
+ }
1201
+ }
1202
+
1203
+ KoK_YEM_missions_2_RAS_religious = {
1204
+ slot = 2
1205
+ generic = no
1206
+ ai = yes
1207
+ potential_on_load = {
1208
+ has_dlc = "King of Kings"
1209
+ }
1210
+ potential = {
1211
+ YEM_is_yemeni_nation = yes
1212
+ has_dlc = "King of Kings"
1213
+ OR = {
1214
+ tag = RAS
1215
+ was_tag = RAS
1216
+ }
1217
+ NOT = { map_setup = map_setup_random }
1218
+ }
1219
+ has_country_shield = yes
1220
+
1221
+ YEM_dawah = {
1222
+ icon = yem_dawah
1223
+ required_missions = { }
1224
+ position = 5
1225
+ provinces_to_highlight = {
1226
+ }
1227
+ trigger = {
1228
+ grown_by_development = 20
1229
+ }
1230
+ effect = {
1231
+ add_country_modifier = {
1232
+ name = YEM_fervent_zaidism
1233
+ duration = 5475
1234
+ }
1235
+
1236
+ if = {
1237
+ limit = {
1238
+ has_dlc = "Cradle of Civilization"
1239
+ }
1240
+ add_army_professionalism = 0.05
1241
+ }
1242
+ else = {
1243
+ add_army_tradition_or_mil_power = { amount = 10 }
1244
+ }
1245
+
1246
+ custom_tooltip = " "
1247
+
1248
+ change_piety_effect = { amount = 0.15 }
1249
+ }
1250
+ }
1251
+
1252
+ YEM_convert_sunni_mosques = {
1253
+ icon = mission_conquer_rewakantha
1254
+ required_missions = { YEM_dawah }
1255
+ position = 6
1256
+ provinces_to_highlight = {
1257
+ owned_by = ROOT
1258
+ NOT = { religion = ROOT }
1259
+ }
1260
+ trigger = {
1261
+ custom_trigger_tooltip = {
1262
+ tooltip = YEM_converted_30_provs
1263
+ check_variable = { which = num_converted_religion value = 30 }
1264
+ }
1265
+ }
1266
+ effect = {
1267
+ custom_tooltip = YEM_gain_a_tenth_of_yearly_income
1268
+ hidden_effect = {
1269
+ if = {
1270
+ limit = {
1271
+ num_of_owned_provinces_with = {
1272
+ has_tax_building_trigger = yes
1273
+ value = 20
1274
+ }
1275
+ }
1276
+ add_years_of_income = 2
1277
+ }
1278
+ else = {
1279
+ every_owned_province = {
1280
+ limit = {
1281
+ has_tax_building_trigger = yes
1282
+ }
1283
+ ROOT = { add_years_of_income = 0.1 }
1284
+ }
1285
+ }
1286
+ }
1287
+
1288
+ custom_tooltip = " "
1289
+
1290
+ country_event_with_option_insight = {
1291
+ id = flavor_YEM.7
1292
+ option_1 = "
1293
+ custom_tooltip = YEM_seize_clerical_holdings_every_temple_provinces
1294
+ "
1295
+ option_2 = "
1296
+ custom_tooltip = YEM_seize_clerical_holdings_clergy_crownland
1297
+ "
1298
+ }
1299
+ }
1300
+ }
1301
+
1302
+ YEM_spread_zaidi_zealotry = {
1303
+ icon = mission_into_persia_1
1304
+ required_missions = { YEM_convert_sunni_mosques YEM_zaidi_dominance YEM_expel_sunnites }
1305
+ position = 7
1306
+ provinces_to_highlight = {
1307
+ owner = {
1308
+ is_neighbor_of = ROOT
1309
+ NOT = { religion = ROOT }
1310
+ }
1311
+ }
1312
+ trigger = {
1313
+ custom_trigger_tooltip = {
1314
+ tooltip = YEM_win_20_wars_against_non_believers
1315
+ check_variable = {
1316
+ which = num_of_wars_won_against_non_believers
1317
+ value = 20
1318
+ }
1319
+ }
1320
+ custom_trigger_tooltip = {
1321
+ tooltip = YEM_converted_100_provs
1322
+ check_variable = { which = num_converted_religion value = 100 }
1323
+ }
1324
+ }
1325
+ effect = {
1326
+ add_country_modifier = {
1327
+ name = YEM_rise_of_the_zaidi
1328
+ duration = -1
1329
+ }
1330
+
1331
+ custom_tooltip = YEM_gain_permanent_claim_on_all_shia_provinces
1332
+ hidden_effect = {
1333
+ every_province = {
1334
+ limit = {
1335
+ religion = shiite
1336
+ NOT = { is_permanent_claim = ROOT }
1337
+ NOT = { is_core = ROOT }
1338
+ }
1339
+ add_permanent_claim = ROOT
1340
+ }
1341
+ }
1342
+ }
1343
+ }
1344
+
1345
+ YEM_zaidi_caliphate = {
1346
+ icon = mission_fatimid_caliphate
1347
+ required_missions = { YEM_spread_zaidi_zealotry }
1348
+ position = 8
1349
+ provinces_to_highlight = {
1350
+ }
1351
+ trigger = {
1352
+ army_size = 200
1353
+ total_development = 1000
1354
+ }
1355
+ effect = {
1356
+ add_permanent_power_projection = {
1357
+ type = yem_permanent_power_projection
1358
+ amount = 10
1359
+ }
1360
+
1361
+ custom_tooltip = " "
1362
+
1363
+ country_event_with_effect_insight = {
1364
+ id = flavor_ARB.5
1365
+ effect = "
1366
+ unlock_government_reform = {
1367
+ government_reform = caliphate_reform
1368
+ }
1369
+ custom_tooltip = \" \"
1370
+ if = {
1371
+ limit = { has_country_modifier = unified_islam }
1372
+ add_country_modifier = {
1373
+ name = ARB_united_islam_upgraded
1374
+ duration = -1
1375
+ }
1376
+ }
1377
+ else = {
1378
+ set_country_flag = ARB_upgraded_uniting_islam
1379
+ custom_tooltip = ARB_uniting_islam_will_now_give_10_warscore_cost_vs_other_religions
1380
+ }
1381
+ "
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+
1387
+ KoK_YEM_missions_3_RAS_religious = {
1388
+ slot = 3
1389
+ generic = no
1390
+ ai = yes
1391
+ potential_on_load = {
1392
+ has_dlc = "King of Kings"
1393
+ }
1394
+ potential = {
1395
+ YEM_is_yemeni_nation = yes
1396
+ has_dlc = "King of Kings"
1397
+ OR = {
1398
+ tag = RAS
1399
+ was_tag = RAS
1400
+ }
1401
+ NOT = { map_setup = map_setup_random }
1402
+ }
1403
+ has_country_shield = yes
1404
+
1405
+ YEM_city_of_sanaa_ras = {
1406
+ icon = mission_golden_century
1407
+ required_missions = { }
1408
+ position = 5
1409
+ provinces_to_highlight = {
1410
+ province_id = 390
1411
+ }
1412
+ trigger = {
1413
+ 390 = {
1414
+ owned_by = ROOT
1415
+ religion = ROOT
1416
+ has_tax_building_trigger = yes
1417
+ if = {
1418
+ limit = { has_dlc = "Leviathan" }
1419
+ custom_trigger_tooltip = {
1420
+ tooltip = YEM_city_of_sanaa_ras_tt
1421
+ or = {
1422
+ has_great_project = { tier = 1 type = city_of_sanaa }
1423
+ has_great_project = { tier = 2 type = city_of_sanaa }
1424
+ has_great_project = { tier = 3 type = city_of_sanaa }
1425
+ }
1426
+ }
1427
+ }
1428
+ }
1429
+ }
1430
+ effect = {
1431
+ 390 = {
1432
+ upgrade_tax_building = yes
1433
+
1434
+ custom_tooltip = " "
1435
+
1436
+ if = {
1437
+ limit = {
1438
+ has_dlc = "Leviathan"
1439
+ }
1440
+ custom_tooltip = YEM_upgrade_city_of_sanaa
1441
+ }
1442
+ else = {
1443
+ add_province_modifier = {
1444
+ name = YEM_center_of_zaidi_islam
1445
+ duration = -1
1446
+ }
1447
+ }
1448
+ }
1449
+ set_country_flag = YEM_upgrade_city_of_sanaa_flag
1450
+
1451
+ complex_dynamic_effect = {
1452
+ first_custom_tooltip = YEM_if_we_are_allied_with_shiite_country
1453
+ first_limit = "
1454
+ any_ally = {
1455
+ religion = shiite
1456
+ }
1457
+ "
1458
+ first_effect = "
1459
+ 390 = {
1460
+ add_base_tax = 2
1461
+ add_base_production = 2
1462
+ add_base_manpower = 1
1463
+ }
1464
+ "
1465
+ }
1466
+ }
1467
+ }
1468
+
1469
+ YEM_zaidi_dominance = {
1470
+ icon = mission_cope_with_refugees
1471
+ required_missions = { YEM_dawah YEM_city_of_sanaa_ras }
1472
+ position = 6
1473
+ provinces_to_highlight = {
1474
+ OR = {
1475
+ province_id = 384
1476
+ province_id = 385
1477
+ }
1478
+ NOT = { owned_by = ROOT }
1479
+ }
1480
+ trigger = {
1481
+ 384 = { owned_by = ROOT }
1482
+ 385 = { owned_by = ROOT }
1483
+ if = {
1484
+ limit = {
1485
+ OR = {
1486
+ has_dlc = "Emperor"
1487
+ has_dlc = "Rights of Man"
1488
+ }
1489
+ }
1490
+ is_great_power = yes
1491
+ }
1492
+ else = {
1493
+ total_development = 300
1494
+ }
1495
+ army_size = 60
1496
+ }
1497
+ effect = {
1498
+ add_stability_or_adm_power = yes
1499
+
1500
+ custom_tooltip = " "
1501
+
1502
+ country_event_with_option_insight = {
1503
+ id = flavor_YEM.6
1504
+ option_1 = "
1505
+ custom_tooltip = YEM_invite_minorities_distribute_5_dev
1506
+ "
1507
+ option_2 = "
1508
+ custom_tooltip = YEM_invite_minorities_theologian
1509
+ "
1510
+ }
1511
+ }
1512
+ }
1513
+ }
missions/Korean_Missions.txt CHANGED
@@ -1487,7 +1487,7 @@ korea_economic_social_political_path_3 = {
1487
1487
  OR = {
1488
1488
  crown_land_share = 90
1489
1489
  custom_trigger_tooltip = {
1490
- tooltip = KOR_two_pleased_estates_tooltip #Two §Yestates§! have at least §Y70 loyalty§!, the other has at least §Y50 loyalty§!.
1490
+ tooltip = KOR_two_pleased_estates_tooltip #Two Yestates�! have at least Y70 loyalty�!, the other has at least Y50 loyalty�!.
1491
1491
  OR = {
1492
1492
  AND = {
1493
1493
  estate_loyalty = {
@@ -1594,9 +1594,9 @@ korea_economic_social_political_path_3 = {
1594
1594
  custom_tooltip = kor_end_factional_strife_tt
1595
1595
  }
1596
1596
  remove_country_modifier = kor_factional_upheaval
1597
- remove_faction = nc_westerners
1598
- remove_faction = nc_easterners
1599
- remove_faction = nc_southerners
1597
+ #remove_faction = nc_westerners
1598
+ #remove_faction = nc_easterners
1599
+ #remove_faction = nc_southerners
1600
1600
  }
1601
1601
  }
1602
1602
  }
@@ -2015,13 +2015,13 @@ korean_missions_eoc_2 = {
2015
2015
 
2016
2016
  if = {
2017
2017
  limit = {
2018
- NOT = { has_harmonized_with = pagan }
2018
+ NOT = { has_harmonized_with = tengri_pagan_reformed }
2019
2019
  NOT = { has_harmonized_with = vajrayana }
2020
2020
  religion = confucianism
2021
2021
  }
2022
2022
  custom_tooltip = mng_db_reward_1_tt
2023
2023
  tooltip = {
2024
- add_harmonized_religion = pagan
2024
+ add_harmonized_religion = tengri_pagan_reformed
2025
2025
  add_harmonized_religion = vajrayana
2026
2026
  add_harmony = 10
2027
2027
  }
@@ -2168,16 +2168,15 @@ korean_missions_eoc_2 = {
2168
2168
  if = {
2169
2169
  limit = {
2170
2170
  OR = {
2171
- NOT = { has_harmonized_with = pagan }
2171
+ NOT = { has_harmonized_with = tengri_pagan_reformed }
2172
2172
  NOT = { has_harmonized_with = vajrayana }
2173
2173
  }
2174
2174
  religion = confucianism
2175
2175
  has_reform = decentralize_reform
2176
2176
  }
2177
- add_harmonized_religion = pagan
2177
+ add_harmonized_religion = tengri_pagan_reformed
2178
2178
  add_harmonized_religion = vajrayana
2179
2179
  add_harmony = 10
2180
- change_government_reform_progress = -250
2181
2180
  }
2182
2181
  else_if = {
2183
2182
  limit = { has_reform = decentralize_reform }
@@ -2348,9 +2347,12 @@ korean_missions_eoc_2 = {
2348
2347
  who = ROOT
2349
2348
  value = 150
2350
2349
  }
2351
- trust = {
2352
- who = ROOT
2353
- value = 70
2350
+ if = {
2351
+ limit = { has_dlc = "Leviathan" }
2352
+ trust = {
2353
+ who = ROOT
2354
+ value = 70
2355
+ }
2354
2356
  }
2355
2357
  }
2356
2358
  amount = 4
@@ -2398,9 +2400,12 @@ korean_missions_eoc_2 = {
2398
2400
  who = ROOT
2399
2401
  value = 150
2400
2402
  }
2401
- trust = {
2402
- who = ROOT
2403
- value = 70
2403
+ if = {
2404
+ limit = { has_dlc = "Leviathan" }
2405
+ trust = {
2406
+ who = ROOT
2407
+ value = 70
2408
+ }
2404
2409
  }
2405
2410
  }
2406
2411
  amount = 4
@@ -2412,9 +2417,12 @@ korean_missions_eoc_2 = {
2412
2417
  who = ROOT
2413
2418
  value = 150
2414
2419
  }
2415
- trust = {
2416
- who = ROOT
2417
- value = 70
2420
+ if = {
2421
+ limit = { has_dlc = "Leviathan" }
2422
+ trust = {
2423
+ who = ROOT
2424
+ value = 70
2425
+ }
2418
2426
  }
2419
2427
  }
2420
2428
  add_country_modifier = {
@@ -2435,9 +2443,12 @@ korean_missions_eoc_2 = {
2435
2443
  who = ROOT
2436
2444
  value = 150
2437
2445
  }
2438
- trust = {
2439
- who = ROOT
2440
- value = 70
2446
+ if = {
2447
+ limit = { has_dlc = "Leviathan" }
2448
+ trust = {
2449
+ who = ROOT
2450
+ value = 70
2451
+ }
2441
2452
  }
2442
2453
  }
2443
2454
  ROOT = { add_mandate = 5 }
@@ -2757,15 +2768,15 @@ korean_missions_eoc_3 = {
2757
2768
  duration = 9125
2758
2769
  }
2759
2770
  change_ruler_stat = {
2760
- stat = adm
2771
+ type = adm
2761
2772
  amount = 1
2762
2773
  }
2763
2774
  change_ruler_stat = {
2764
- stat = dip
2775
+ type = dip
2765
2776
  amount = 1
2766
2777
  }
2767
2778
  change_ruler_stat = {
2768
- stat = mil
2779
+ type = mil
2769
2780
  amount = 1
2770
2781
  }
2771
2782
  }
@@ -3292,21 +3303,30 @@ korean_missions_eoc_5 = {
3292
3303
  set_country_flag = mng_trade_eff_per_dip_advisor_level_flag
3293
3304
  }
3294
3305
  else = {
3295
- add_province_modifier = {
3296
- name = mng_safe_coasts_modifier
3297
- duration = 9125
3306
+ every_owned_province = {
3307
+ limit = {
3308
+ has_coast_defense_building_trigger = yes
3309
+ development = 20
3310
+ }
3311
+ add_province_modifier = {
3312
+ name = mng_safe_coasts_modifier
3313
+ duration = 9125
3314
+ }
3315
+ if = {
3316
+ limit = { has_dlc = "Mandate of Heaven" }
3317
+ add_prosperity = 100
3318
+ }
3319
+ else = {
3320
+ add_base_production = 1
3321
+ }
3298
3322
  }
3299
3323
  set_country_flag = mng_dev_per_adm_advisor_level_flag
3300
3324
  if = {
3301
3325
  limit = { has_dlc = "Mandate of Heaven" }
3302
- add_prosperity = 100
3303
3326
  add_mandate = 5
3304
3327
  }
3305
3328
  else = {
3306
- add_base_production = 1
3307
- owner = {
3308
- add_prestige_or_monarch_power = { amount = 35 }
3309
- }
3329
+ add_prestige_or_monarch_power = { amount = 35 }
3310
3330
  }
3311
3331
  }
3312
3332
  }
missions/MND_Majapahit_Missions.txt CHANGED
@@ -839,7 +839,7 @@ mnd_maj_4 = {
839
839
  }
840
840
  SUN = {
841
841
  change_primary_culture = javanese
842
- add_accepted_culture_or_dip_power = { culture = sundanese }
842
+ add_accepted_culture_or_dip_power = { culture = sundanese dip_reward = yes }
843
843
  }
844
844
  }
845
845
  if = {
missions/MND_Pegu_Missions.txt CHANGED
@@ -278,7 +278,7 @@ mnd_pegu_3 = {
278
278
  override_country_name = HARIPHUNCHAI
279
279
  set_country_flag = is_hariphunchai
280
280
  change_primary_culture = mon
281
- add_accepted_culture_or_dip_power = { culture = northern_thai }
281
+ add_accepted_culture_or_dip_power = { culture = northern_thai dip_reward = yes }
282
282
  }
283
283
  }
284
284
  4841 = {
@@ -375,7 +375,7 @@ mnd_pegu_3 = {
375
375
  override_country_name = DVARAVATI
376
376
  set_country_flag = is_dvaravati
377
377
  change_primary_culture = mon
378
- add_accepted_culture_or_dip_power = { culture = central_thai }
378
+ add_accepted_culture_or_dip_power = { culture = central_thai dip_reward = yes }
379
379
  }
380
380
  }
381
381
  }
missions/Malacca_Missions.txt CHANGED
@@ -402,9 +402,12 @@ mnd_mlc_2 = {
402
402
  who = ROOT
403
403
  value = 100
404
404
  }
405
- trust = {
406
- who = ROOT
407
- value = 65
405
+ if = {
406
+ limit = { has_dlc = "Leviathan" }
407
+ trust = {
408
+ who = ROOT
409
+ value = 65
410
+ }
408
411
  }
409
412
  }
410
413
  }
missions/Mamluk_Missions.txt CHANGED
@@ -2,9 +2,13 @@ mam_south_missions = {
2
2
  slot = 1
3
3
  generic = no
4
4
  ai = yes
5
+ potential_on_load = {
6
+ NOT = { has_dlc = "King of Kings" }
7
+ }
5
8
  potential = {
6
9
  tag = MAM
7
10
  NOT = { map_setup = map_setup_random }
11
+ NOT = { has_dlc = "King of Kings" }
8
12
  }
9
13
  has_country_shield = yes
10
14
 
@@ -121,9 +125,13 @@ mam_north_missions = {
121
125
  slot = 5
122
126
  generic = no
123
127
  ai = yes
128
+ potential_on_load = {
129
+ NOT = { has_dlc = "King of Kings" }
130
+ }
124
131
  potential = {
125
132
  tag = MAM
126
133
  NOT = { map_setup = map_setup_random }
134
+ NOT = { has_dlc = "King of Kings" }
127
135
  }
128
136
  has_country_shield = yes
129
137
 
missions/Mongol_Missions.txt CHANGED
@@ -48,6 +48,7 @@ mongol_missions_1 = {
48
48
  primary_culture = oirats
49
49
  primary_culture = altaic_new
50
50
  }
51
+ NOT = { can_preview_missions = yes }
51
52
  NOT = { map_setup = map_setup_random }
52
53
  }
53
54
  has_country_shield = yes
@@ -218,6 +219,7 @@ mongol_missions_2 = {
218
219
  primary_culture = oirats
219
220
  primary_culture = altaic_new
220
221
  }
222
+ NOT = { can_preview_missions = yes }
221
223
  NOT = { map_setup = map_setup_random }
222
224
 
223
225
  }
@@ -462,6 +464,7 @@ mongol_missions_3 = {
462
464
  primary_culture = oirats
463
465
  primary_culture = altaic_new
464
466
  }
467
+ NOT = { can_preview_missions = yes }
465
468
  NOT = { map_setup = map_setup_random }
466
469
 
467
470
  }
@@ -632,6 +635,7 @@ mongol_missions_4 = {
632
635
  primary_culture = oirats
633
636
  primary_culture = altaic_new
634
637
  }
638
+ NOT = { can_preview_missions = yes }
635
639
  NOT = { map_setup = map_setup_random }
636
640
  }
637
641
  has_country_shield = yes
missions/PP_Purple_Phoenix.txt CHANGED
@@ -9,6 +9,7 @@ byz_pp_balkans_north_italy = {
9
9
  tag = BYZ
10
10
  has_dlc = "Purple Phoenix"
11
11
  NOT = { map_setup = map_setup_random }
12
+ NOT = { has_dlc = "King of Kings" }
12
13
  }
13
14
  has_country_shield = yes
14
15
 
@@ -194,6 +195,7 @@ byz_pp_italian = {
194
195
  tag = BYZ
195
196
  has_dlc = "Purple Phoenix"
196
197
  NOT = { map_setup = map_setup_random }
198
+ NOT = { has_dlc = "King of Kings" }
197
199
  }
198
200
  has_country_shield = yes
199
201
 
@@ -381,6 +383,7 @@ byz_pp_maritime = {
381
383
  tag = BYZ
382
384
  has_dlc = "Purple Phoenix"
383
385
  NOT = { map_setup = map_setup_random }
386
+ NOT = { has_dlc = "King of Kings" }
384
387
  }
385
388
  has_country_shield = yes
386
389
 
@@ -614,6 +617,7 @@ byz_pp_religion = {
614
617
  tag = BYZ
615
618
  has_dlc = "Purple Phoenix"
616
619
  NOT = { map_setup = map_setup_random }
620
+ NOT = { has_dlc = "King of Kings" }
617
621
  }
618
622
  has_country_shield = yes
619
623
 
@@ -915,6 +919,7 @@ byz_pp_east = {
915
919
  tag = BYZ
916
920
  has_dlc = "Purple Phoenix"
917
921
  NOT = { map_setup = map_setup_random }
922
+ NOT = { has_dlc = "King of Kings" }
918
923
  }
919
924
  has_country_shield = yes
920
925
 
missions/Palatinate_Missions.txt CHANGED
@@ -23,14 +23,14 @@ palatinate_conquest_group = {
23
23
  effect = {
24
24
  franconia_area = {
25
25
  limit = {
26
- NOT = { is_claim = root }
26
+ NOT = { is_permanent_claim = root }
27
27
  NOT = { is_core = root }
28
28
  }
29
29
  add_permanent_claim = root
30
30
  }
31
31
  upper_franconia_area = {
32
32
  limit = {
33
- NOT = { is_claim = root }
33
+ NOT = { is_permanent_claim = root }
34
34
  NOT = { is_core = root }
35
35
  }
36
36
  add_permanent_claim = root
missions/Persian_Missions.txt CHANGED
@@ -5,6 +5,7 @@ per_western_branch = {
5
5
  potential = {
6
6
  tag = PER
7
7
  NOT = { map_setup = map_setup_random }
8
+ NOT = { has_dlc = "King of Kings" }
8
9
  }
9
10
  has_country_shield = yes
10
11
 
@@ -193,6 +194,7 @@ per_western_branch = {
193
194
  }
194
195
  add_claim = ROOT
195
196
  }
197
+ set_country_flag = trigger_flavor_per_9
196
198
  country_event = { id = flavor_per.9 }
197
199
  tooltip = {
198
200
  2311 = {
@@ -213,6 +215,7 @@ per_east = {
213
215
  potential = {
214
216
  tag = PER
215
217
  NOT = { map_setup = map_setup_random }
218
+ NOT = { has_dlc = "King of Kings" }
216
219
  }
217
220
  has_country_shield = yes
218
221
 
missions/RB_English_Missions.txt CHANGED
@@ -1129,7 +1129,7 @@ gbr_rb_spice_islands_group = {
1129
1129
  }
1130
1130
  west_bengal_area = {
1131
1131
  limit = {
1132
- NOT = { is_claim = ROOT }
1132
+ NOT = { is_permanent_claim = ROOT }
1133
1133
  NOT = { is_core = ROOT }
1134
1134
  }
1135
1135
  add_permanent_claim = ROOT
missions/SCA_Danish_Missions.txt CHANGED
@@ -206,7 +206,7 @@ dan_secure_baltic_mission_slot = {
206
206
  }
207
207
  }
208
208
 
209
- dan_the_sound_toll = { #Dominate Northsea, Baltic and Lübeck trade
209
+ dan_the_sound_toll = { #Dominate Northsea, Baltic and L�beck trade
210
210
  icon = mission_the_sound_toll
211
211
  position = 4
212
212
  required_missions = {
@@ -599,7 +599,7 @@ dan_trade_and_colonial_mission_slot = {
599
599
  owns_or_non_sovereign_subject_of = 35
600
600
  }
601
601
  effect = {
602
- add_accepted_culture_or_dip_power = { culture = estonian }
602
+ add_accepted_culture_or_dip_power = { culture = estonian dip_reward = yes }
603
603
  add_country_modifier = {
604
604
  name = dan_estonian_culture_accepted
605
605
  duration = -1
@@ -697,15 +697,15 @@ dan_trade_and_colonial_mission_slot = {
697
697
  }
698
698
  }
699
699
  change_ruler_stat = {
700
- stat = adm
700
+ type = adm
701
701
  amount = 1
702
702
  }
703
703
  change_ruler_stat = {
704
- stat = dip
704
+ type = dip
705
705
  amount = 1
706
706
  }
707
707
  change_ruler_stat = {
708
- stat = mil
708
+ type = mil
709
709
  amount = 1
710
710
  }
711
711
  }
@@ -1292,10 +1292,7 @@ dan_norway_holstein_mission_slot = {
1292
1292
  }
1293
1293
  }
1294
1294
  effect = {
1295
- custom_tooltip = no_more_comet_sighted_event_tt
1296
- hidden_effect = {
1297
- set_country_flag = no_more_comet_sighted_event
1298
- }
1295
+ remove_comet_sighted_events = yes
1299
1296
  change_innovativeness = 3
1300
1297
  add_adm_power = 50
1301
1298
  add_dip_power = 50
@@ -1621,7 +1618,7 @@ dan_sweden_and_great_power_mission_slot = {
1621
1618
  }
1622
1619
  set_country_flag = dan_no_more_swedish_rebels
1623
1620
  change_ruler_stat = {
1624
- stat = mil
1621
+ type = mil
1625
1622
  amount = 2
1626
1623
  }
1627
1624
  }
@@ -2768,7 +2765,7 @@ dan_religion_mission_slot = {
2768
2765
  add_papal_influence = 200
2769
2766
  add_war_exhaustion = -2
2770
2767
  change_ruler_stat = {
2771
- stat = mil
2768
+ type = mil
2772
2769
  amount = 2
2773
2770
  }
2774
2771
  if = {
@@ -2811,7 +2808,7 @@ dan_religion_mission_slot = {
2811
2808
  }
2812
2809
  else = {
2813
2810
  change_ruler_stat = {
2814
- stat = dip
2811
+ type = dip
2815
2812
  amount = 1
2816
2813
  }
2817
2814
  }
@@ -2820,7 +2817,7 @@ dan_religion_mission_slot = {
2820
2817
  add_fervor = 100
2821
2818
  add_war_exhaustion = -2
2822
2819
  change_ruler_stat = {
2823
- stat = mil
2820
+ type = mil
2824
2821
  amount = 2
2825
2822
  }
2826
2823
  if = {
@@ -2845,7 +2842,7 @@ dan_religion_mission_slot = {
2845
2842
  }
2846
2843
  custom_tooltip = swe_humanist_effects_tt
2847
2844
  change_ruler_stat = {
2848
- stat = dip
2845
+ type = dip
2849
2846
  amount = 4
2850
2847
  }
2851
2848
  }
@@ -2995,7 +2992,7 @@ dan_catholic_mission_slot = {
2995
2992
  add_papal_influence = 200
2996
2993
  add_war_exhaustion = -2
2997
2994
  change_ruler_stat = {
2998
- stat = mil
2995
+ type = mil
2999
2996
  amount = 2
3000
2997
  }
3001
2998
  if = {
@@ -3050,7 +3047,7 @@ dan_catholic_mission_slot = {
3050
3047
  }
3051
3048
  else = {
3052
3049
  change_ruler_stat = {
3053
- stat = dip
3050
+ type = dip
3054
3051
  amount = 1
3055
3052
  }
3056
3053
  }
@@ -3215,7 +3212,7 @@ dan_protestant_mission_slot = {
3215
3212
  add_fervor = 100
3216
3213
  add_war_exhaustion = -2
3217
3214
  change_ruler_stat = {
3218
- stat = mil
3215
+ type = mil
3219
3216
  amount = 2
3220
3217
  }
3221
3218
  if = {
@@ -3254,7 +3251,7 @@ dan_protestant_mission_slot = {
3254
3251
  custom_tooltip = dan_spread_the_reformation_tt
3255
3252
  }
3256
3253
  change_ruler_stat = {
3257
- stat = dip
3254
+ type = dip
3258
3255
  amount = 1
3259
3256
  }
3260
3257
  }
@@ -3357,7 +3354,7 @@ dan_humanist_mission_slot = {
3357
3354
  }
3358
3355
  effect = {
3359
3356
  change_ruler_stat = {
3360
- stat = dip
3357
+ type = dip
3361
3358
  amount = 3
3362
3359
  }
3363
3360
  }
@@ -4047,9 +4044,12 @@ dan_sca_conquest_slot_2 = {
4047
4044
  who = ROOT
4048
4045
  value = 100
4049
4046
  }
4050
- trust = {
4051
- who = ROOT
4052
- value = 70
4047
+ if = {
4048
+ limit = { has_dlc = "Leviathan" }
4049
+ trust = {
4050
+ who = ROOT
4051
+ value = 70
4052
+ }
4053
4053
  }
4054
4054
  }
4055
4055
  }
@@ -4103,9 +4103,12 @@ dan_sca_conquest_slot_2 = {
4103
4103
  who = ROOT
4104
4104
  value = 100
4105
4105
  }
4106
- trust = {
4107
- who = ROOT
4108
- value = 70
4106
+ if = {
4107
+ limit = { has_dlc = "Leviathan" }
4108
+ trust = {
4109
+ who = ROOT
4110
+ value = 70
4111
+ }
4109
4112
  }
4110
4113
  }
4111
4114
  }
@@ -4118,9 +4121,12 @@ dan_sca_conquest_slot_2 = {
4118
4121
  who = ROOT
4119
4122
  value = 100
4120
4123
  }
4121
- trust = {
4122
- who = ROOT
4123
- value = 70
4124
+ if = {
4125
+ limit = { has_dlc = "Leviathan" }
4126
+ trust = {
4127
+ who = ROOT
4128
+ value = 70
4129
+ }
4124
4130
  }
4125
4131
  any_owned_province = {
4126
4132
  OR = {
@@ -4223,6 +4229,7 @@ dan_sca_conquest_slot_3 = {
4223
4229
  }
4224
4230
  add_accepted_culture_or_dip_power = {
4225
4231
  culture = prussian
4232
+ dip_reward = yes
4226
4233
  }
4227
4234
  }
4228
4235
  }
missions/SCA_Finnish_Missions.txt CHANGED
@@ -100,60 +100,60 @@ fin_missions_1 = {
100
100
  if = {
101
101
  limit = { grown_by_development = 50 }
102
102
  change_ruler_stat = {
103
- stat = mil
103
+ type = mil
104
104
  amount = 3
105
105
  }
106
106
  }
107
107
  else_if = {
108
108
  limit = { grown_by_development = 25 }
109
109
  change_ruler_stat = {
110
- stat = mil
110
+ type = mil
111
111
  amount = 2
112
112
  }
113
113
  }
114
114
  else = {
115
115
  change_ruler_stat = {
116
- stat = mil
116
+ type = mil
117
117
  amount = 1
118
118
  }
119
119
  }
120
120
  if = {
121
121
  limit = { stability = 3 }
122
122
  change_ruler_stat = {
123
- stat = adm
123
+ type = adm
124
124
  amount = 3
125
125
  }
126
126
  }
127
127
  else_if = {
128
128
  limit = { stability = 2 }
129
129
  change_ruler_stat = {
130
- stat = adm
130
+ type = adm
131
131
  amount = 2
132
132
  }
133
133
  }
134
134
  else = {
135
135
  change_ruler_stat = {
136
- stat = adm
136
+ type = adm
137
137
  amount = 1
138
138
  }
139
139
  }
140
140
  if = {
141
141
  limit = { num_of_allies = 3 }
142
142
  change_ruler_stat = {
143
- stat = dip
143
+ type = dip
144
144
  amount = 3
145
145
  }
146
146
  }
147
147
  else_if = {
148
148
  limit = { num_of_allies = 2 }
149
149
  change_ruler_stat = {
150
- stat = dip
150
+ type = dip
151
151
  amount = 2
152
152
  }
153
153
  }
154
154
  else = {
155
155
  change_ruler_stat = {
156
- stat = dip
156
+ type = dip
157
157
  amount = 1
158
158
  }
159
159
  }
@@ -331,7 +331,7 @@ fin_missions_2 = {
331
331
  }
332
332
  else = {
333
333
  change_ruler_stat = {
334
- stat = dip
334
+ type = dip
335
335
  amount = 1
336
336
  }
337
337
  }
@@ -700,7 +700,7 @@ fin_missions_4 = {
700
700
  }
701
701
  else = {
702
702
  change_ruler_stat = {
703
- stat = adm
703
+ type = adm
704
704
  amount = 2
705
705
  }
706
706
  }
@@ -752,7 +752,7 @@ fin_missions_4 = {
752
752
  }
753
753
  else = {
754
754
  change_ruler_stat = {
755
- stat = adm
755
+ type = adm
756
756
  amount = 2
757
757
  }
758
758
  }
missions/SCA_Gotlandish_Missions.txt CHANGED
@@ -2537,7 +2537,7 @@ got_pirate_slot_5 = {
2537
2537
  add_historical_friend = ROOT
2538
2538
  define_ruler = {
2539
2539
  force_republican_names = yes
2540
- dynasty = "Störtebeker"
2540
+ dynasty = "St�rtebeker"
2541
2541
  culture = pommeranian
2542
2542
  }
2543
2543
  add_republican_tradition = 50
missions/SCA_Lithuania_Missions.txt CHANGED
@@ -1,5 +1,5 @@
1
- lit_dlc_1 = { #Designed / Scripted and Localised by Big Boss
2
- slot = 1 #Special thanks to ####nekalakinahappen#### for providing valuable research
1
+ lit_dlc_1 = {
2
+ slot = 1
3
3
  generic = no
4
4
  ai = yes
5
5
  potential_on_load = {
@@ -72,7 +72,7 @@ lit_dlc_1 = { #Designed / Scripted and Localised by Big Boss
72
72
  }
73
73
  else = {
74
74
  change_ruler_stat = {
75
- stat = dip
75
+ type = dip
76
76
  amount = 1
77
77
  }
78
78
  }
@@ -263,7 +263,7 @@ lit_dlc_2 = {
263
263
  }
264
264
  }
265
265
  change_ruler_stat = {
266
- stat = adm
266
+ type = adm
267
267
  amount = 1
268
268
  }
269
269
  }
@@ -459,7 +459,7 @@ lit_dlc_3 = {
459
459
  }
460
460
  else = {
461
461
  change_ruler_stat = {
462
- stat = adm
462
+ type = adm
463
463
  amount = 2
464
464
  }
465
465
  }
@@ -988,15 +988,15 @@ lit_dlc_5 = {
988
988
  custom_tooltip = pol_alternatively_tt
989
989
  tooltip = {
990
990
  change_ruler_stat = {
991
- stat = adm
991
+ type = adm
992
992
  amount = 1
993
993
  }
994
994
  change_ruler_stat = {
995
- stat = dip
995
+ type = dip
996
996
  amount = 1
997
997
  }
998
998
  change_ruler_stat = {
999
- stat = mil
999
+ type = mil
1000
1000
  amount = 1
1001
1001
  }
1002
1002
  poland_region = {
@@ -1020,15 +1020,15 @@ lit_dlc_5 = {
1020
1020
  }
1021
1021
  else = {
1022
1022
  change_ruler_stat = {
1023
- stat = adm
1023
+ type = adm
1024
1024
  amount = 1
1025
1025
  }
1026
1026
  change_ruler_stat = {
1027
- stat = dip
1027
+ type = dip
1028
1028
  amount = 1
1029
1029
  }
1030
1030
  change_ruler_stat = {
1031
- stat = mil
1031
+ type = mil
1032
1032
  amount = 1
1033
1033
  }
1034
1034
  poland_region = {
missions/SCA_Livonian_Missions.txt CHANGED
@@ -327,8 +327,9 @@ liv_riga_and_secularization_mission_slot = {
327
327
  accepted_culture = latvian
328
328
  }
329
329
  effect = {
330
- country_event = {
331
- id = flavor_liv.1
330
+ enable_branching_mission_review = {
331
+ key = LIV
332
+ ai_event_id = flavor_liv.1
332
333
  }
333
334
  custom_tooltip = teu_defeat_the_poles_tt
334
335
  samogitia_area = {
@@ -667,6 +668,7 @@ liv_lva_colonialism_mission_slot = {
667
668
  required_missions = { }
668
669
  provinces_to_highlight = {}
669
670
  trigger = {
671
+ not_in_mission_preview_mode = { key = LIV }
670
672
  OR = {
671
673
  has_institution = new_world_i
672
674
  has_idea = quest_for_the_new_world
@@ -739,6 +741,7 @@ liv_lva_colonize_north_america_mission_slot = {
739
741
  NOT = { has_discovered = ROOT }
740
742
  }
741
743
  trigger = {
744
+ not_in_mission_preview_mode = { key = LIV }
742
745
  OR = {
743
746
  north_america = { has_discovered = ROOT }
744
747
  south_america = { has_discovered = ROOT }
@@ -763,6 +766,7 @@ liv_lva_colonize_north_america_mission_slot = {
763
766
  has_discovered = ROOT
764
767
  }
765
768
  trigger = {
769
+ not_in_mission_preview_mode = { key = LIV }
766
770
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
767
771
  continent = north_america
768
772
  value = 5
@@ -809,6 +813,7 @@ liv_lva_colonize_north_america_mission_slot = {
809
813
  has_discovered = ROOT
810
814
  }
811
815
  trigger = {
816
+ not_in_mission_preview_mode = { key = LIV }
812
817
  owns_or_non_sovereign_subject_of = 502
813
818
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
814
819
  colonial_region = colonial_the_carribean
@@ -847,6 +852,7 @@ liv_lva_colonize_north_america_mission_slot = {
847
852
  has_discovered = ROOT
848
853
  }
849
854
  trigger = {
855
+ not_in_mission_preview_mode = { key = LIV }
850
856
  calc_true_if = {
851
857
  custom_trigger_tooltip = {
852
858
  tooltip = liv_lva_dominate_colonial_trade_tt
@@ -911,6 +917,7 @@ liv_lva_colonize_new_world_mission_slot = {
911
917
  NOT = { has_discovered = ROOT }
912
918
  }
913
919
  trigger = {
920
+ not_in_mission_preview_mode = { key = LIV }
914
921
  new_world = { has_discovered = ROOT }
915
922
  }
916
923
  effect = {
@@ -932,6 +939,7 @@ liv_lva_colonize_new_world_mission_slot = {
932
939
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
933
940
  }
934
941
  trigger = {
942
+ not_in_mission_preview_mode = { key = LIV }
935
943
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
936
944
  continent = new_world
937
945
  value = 5
@@ -969,6 +977,7 @@ liv_lva_colonize_new_world_mission_slot = {
969
977
  }
970
978
  }
971
979
  trigger = {
980
+ not_in_mission_preview_mode = { key = LIV }
972
981
  NOT = { current_age = age_of_discovery }
973
982
  custom_trigger_tooltip = {
974
983
  tooltip = nor_dominate_new_world_tt
@@ -1045,6 +1054,7 @@ liv_lva_old_world_scramble_mission_slot = {
1045
1054
  }
1046
1055
  }
1047
1056
  trigger = {
1057
+ not_in_mission_preview_mode = { key = LIV }
1048
1058
  OR = {
1049
1059
  owns_core_province = 2239
1050
1060
  owns_core_province = 1114
@@ -1093,6 +1103,7 @@ liv_lva_old_world_scramble_mission_slot = {
1093
1103
  }
1094
1104
  }
1095
1105
  trigger = {
1106
+ not_in_mission_preview_mode = { key = LIV }
1096
1107
  owns_core_province = 1177
1097
1108
  1460 = {
1098
1109
  OR = {
@@ -1202,6 +1213,7 @@ liv_lva_old_world_scramble_mission_slot = {
1202
1213
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
1203
1214
  }
1204
1215
  trigger = {
1216
+ not_in_mission_preview_mode = { key = LIV }
1205
1217
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
1206
1218
  custom_trigger_tooltip = {
1207
1219
  tooltip = liv_lva_trade_in_india_tt
@@ -1271,6 +1283,7 @@ liv_lva_trade_mission_slot = {
1271
1283
  }
1272
1284
  }
1273
1285
  trigger = {
1286
+ not_in_mission_preview_mode = { key = LIV }
1274
1287
  owns_core_province = 37
1275
1288
  owns_core_province = 36
1276
1289
  owns_core_province = 39
@@ -1302,6 +1315,7 @@ liv_lva_trade_mission_slot = {
1302
1315
  required_missions = { }
1303
1316
  provinces_to_highlight = {}
1304
1317
  trigger = {
1318
+ not_in_mission_preview_mode = { key = LIV }
1305
1319
  num_of_light_ship = 15
1306
1320
  num_of_admirals = 1
1307
1321
  }
@@ -1340,6 +1354,7 @@ liv_lva_trade_mission_slot = {
1340
1354
  }
1341
1355
  }
1342
1356
  trigger = {
1357
+ not_in_mission_preview_mode = { key = LIV }
1343
1358
  mercantilism = 15
1344
1359
  owns_core_province = 37
1345
1360
  num_of_owned_provinces_with = {
@@ -1392,6 +1407,7 @@ liv_lva_trade_mission_slot = {
1392
1407
  }
1393
1408
  }
1394
1409
  trigger = {
1410
+ not_in_mission_preview_mode = { key = LIV }
1395
1411
  trader = 3
1396
1412
  if = {
1397
1413
  limit = {
@@ -1503,6 +1519,7 @@ liv_lva_livonian_teutonic_mission_slot = {
1503
1519
  }
1504
1520
  }
1505
1521
  trigger = {
1522
+ not_in_mission_preview_mode = { key = LIV }
1506
1523
  OR = {
1507
1524
  custom_trigger_tooltip = {
1508
1525
  tooltip = liv_lva_prussian_alliance_at
@@ -1626,6 +1643,7 @@ liv_lva_livonian_teutonic_mission_slot = {
1626
1643
  }
1627
1644
  provinces_to_highlight = {}
1628
1645
  trigger = {
1646
+ not_in_mission_preview_mode = { key = LIV }
1629
1647
  adm_power_cost = 500
1630
1648
  has_any_disaster = no
1631
1649
  is_at_war = no
@@ -1645,6 +1663,7 @@ liv_lva_livonian_teutonic_mission_slot = {
1645
1663
  required_missions = { liv_lva_reform_the_government }
1646
1664
  provinces_to_highlight = {}
1647
1665
  trigger = {
1666
+ not_in_mission_preview_mode = { key = LIV }
1648
1667
  monthly_adm = 10
1649
1668
  monthly_dip = 10
1650
1669
  monthly_mil = 10
@@ -1700,6 +1719,7 @@ liv_baltic_mission_slot = {
1700
1719
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
1701
1720
  }
1702
1721
  trigger = {
1722
+ not_in_mission_preview_mode = { key = LIV }
1703
1723
  west_prussia_area = {
1704
1724
  country_or_non_sovereign_subject_holds = ROOT
1705
1725
  type = all
@@ -1712,6 +1732,7 @@ liv_baltic_mission_slot = {
1712
1732
  effect = {
1713
1733
  add_accepted_culture_or_dip_power = {
1714
1734
  culture = prussian
1735
+ dip_reward = yes
1715
1736
  }
1716
1737
  lithuania_area = {
1717
1738
  limit = {
@@ -1742,6 +1763,7 @@ liv_baltic_mission_slot = {
1742
1763
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
1743
1764
  }
1744
1765
  trigger = {
1766
+ not_in_mission_preview_mode = { key = LIV }
1745
1767
  lithuania_area = {
1746
1768
  country_or_non_sovereign_subject_holds = ROOT
1747
1769
  type = all
@@ -1754,6 +1776,7 @@ liv_baltic_mission_slot = {
1754
1776
  effect = {
1755
1777
  add_accepted_culture_or_dip_power = {
1756
1778
  culture = lithuanian
1779
+ dip_reward = yes
1757
1780
  }
1758
1781
  baltic_region = {
1759
1782
  limit = {
@@ -1779,6 +1802,7 @@ liv_baltic_mission_slot = {
1779
1802
  }
1780
1803
  }
1781
1804
  trigger = {
1805
+ not_in_mission_preview_mode = { key = LIV }
1782
1806
  baltic_region = {
1783
1807
  country_or_non_sovereign_subject_holds = ROOT
1784
1808
  num_of_times_improved = 2
@@ -1834,6 +1858,7 @@ liv_lva_handle_the_threats_mission_slot = {
1834
1858
  NOT = { province_id = 38 }
1835
1859
  }
1836
1860
  trigger = {
1861
+ not_in_mission_preview_mode = { key = LIV }
1837
1862
  custom_trigger_tooltip = {
1838
1863
  tooltip = liv_lva_develop_livonia_tt
1839
1864
  estonia_ingria_area = {
@@ -1896,6 +1921,7 @@ liv_lva_handle_the_threats_mission_slot = {
1896
1921
  }
1897
1922
  }
1898
1923
  trigger = {
1924
+ not_in_mission_preview_mode = { key = LIV }
1899
1925
  38 = {
1900
1926
  owned_by = ROOT
1901
1927
  development = 20
@@ -1932,6 +1958,7 @@ liv_lva_handle_the_threats_mission_slot = {
1932
1958
  }
1933
1959
  }
1934
1960
  trigger = {
1961
+ not_in_mission_preview_mode = { key = LIV }
1935
1962
  if = {
1936
1963
  limit = { has_dlc = "Rule Britannia" }
1937
1964
  innovativeness = 30
@@ -1969,6 +1996,7 @@ liv_lva_handle_the_threats_mission_slot = {
1969
1996
  }
1970
1997
  }
1971
1998
  trigger = {
1999
+ not_in_mission_preview_mode = { key = LIV }
1972
2000
  owns_core_province = 33
1973
2001
  }
1974
2002
  effect = {
@@ -1978,29 +2006,34 @@ liv_lva_handle_the_threats_mission_slot = {
1978
2006
  }
1979
2007
  add_accepted_culture_or_dip_power = {
1980
2008
  culture = novgorodian
2009
+ dip_reward = yes
1981
2010
  }
1982
2011
  }
1983
2012
  else_if = {
1984
2013
  limit = { 33 = { culture = novgorodian_new } }
1985
2014
  add_accepted_culture_or_dip_power = {
1986
2015
  culture = novgorodian_new
2016
+ dip_reward = yes
1987
2017
  }
1988
2018
  }
1989
2019
  else_if = {
1990
2020
  limit = { 33 = { culture = russian } }
1991
2021
  add_accepted_culture_or_dip_power = {
1992
2022
  culture = russian
2023
+ dip_reward = yes
1993
2024
  }
1994
2025
  }
1995
2026
  else_if = {
1996
2027
  limit = { 33 = { culture = russian_new } }
1997
2028
  add_accepted_culture_or_dip_power = {
1998
2029
  culture = russian_new
2030
+ dip_reward = yes
1999
2031
  }
2000
2032
  }
2001
2033
  else = {
2002
2034
  add_accepted_culture_or_dip_power = {
2003
2035
  culture = karelian
2036
+ dip_reward = yes
2004
2037
  }
2005
2038
  }
2006
2039
  karelia_area = {
@@ -2045,6 +2078,7 @@ liv_lva_handle_the_threats_mission_slot = {
2045
2078
  }
2046
2079
  }
2047
2080
  trigger = {
2081
+ not_in_mission_preview_mode = { key = LIV }
2048
2082
  if = {
2049
2083
  limit = { exists = PLC }
2050
2084
  OR = {
@@ -2166,6 +2200,7 @@ liv_internal_catholicism_mission_slot = {
2166
2200
  is_capital_of = PAP
2167
2201
  }
2168
2202
  trigger = {
2203
+ not_in_mission_preview_mode = { key = LIV }
2169
2204
  religion = catholic
2170
2205
  if = {
2171
2206
  limit = {
@@ -2220,6 +2255,7 @@ liv_internal_catholicism_mission_slot = {
2220
2255
  NOT = { religion = ROOT }
2221
2256
  }
2222
2257
  trigger = {
2258
+ not_in_mission_preview_mode = { key = LIV }
2223
2259
  religion = catholic
2224
2260
  grown_by_states = 5
2225
2261
  religious_unity = 1
@@ -2245,6 +2281,7 @@ liv_internal_catholicism_mission_slot = {
2245
2281
  }
2246
2282
  }
2247
2283
  trigger = {
2284
+ not_in_mission_preview_mode = { key = LIV }
2248
2285
  religion = catholic
2249
2286
  num_of_owned_provinces_with = {
2250
2287
  religion = catholic
@@ -2261,6 +2298,7 @@ liv_internal_catholicism_mission_slot = {
2261
2298
  add_years_of_owned_provinces_manpower = {
2262
2299
  years = 4
2263
2300
  trigger = {
2301
+ not_in_mission_preview_mode = { key = LIV }
2264
2302
  religion = ROOT
2265
2303
  has_tax_building_trigger = yes
2266
2304
  }
@@ -2282,6 +2320,7 @@ liv_internal_catholicism_mission_slot = {
2282
2320
  }
2283
2321
  }
2284
2322
  trigger = {
2323
+ not_in_mission_preview_mode = { key = LIV }
2285
2324
  religion = catholic
2286
2325
  num_of_owned_provinces_with = {
2287
2326
  religion = catholic
@@ -2304,6 +2343,7 @@ liv_internal_catholicism_mission_slot = {
2304
2343
  required_missions = { }
2305
2344
  provinces_to_highlight = {}
2306
2345
  trigger = {
2346
+ not_in_mission_preview_mode = { key = LIV }
2307
2347
  religion = catholic
2308
2348
  if = {
2309
2349
  limit = {
@@ -2355,6 +2395,7 @@ liv_purge_reformation_mission_slot = {
2355
2395
  required_missions = { }
2356
2396
  provinces_to_highlight = {}
2357
2397
  trigger = {
2398
+ not_in_mission_preview_mode = { key = LIV }
2358
2399
  religion = catholic
2359
2400
  is_religion_enabled = protestant
2360
2401
  OR = {
@@ -2383,6 +2424,7 @@ liv_purge_reformation_mission_slot = {
2383
2424
  required_missions = { liv_ally_the_emperor }
2384
2425
  provinces_to_highlight = {}
2385
2426
  trigger = {
2427
+ not_in_mission_preview_mode = { key = LIV }
2386
2428
  religion = catholic
2387
2429
  if = {
2388
2430
  limit = {
@@ -2432,7 +2474,7 @@ liv_purge_reformation_mission_slot = {
2432
2474
  add_papal_influence = 200
2433
2475
  add_war_exhaustion = -2
2434
2476
  change_ruler_stat = {
2435
- stat = mil
2477
+ type = mil
2436
2478
  amount = 2
2437
2479
  }
2438
2480
  if = {
@@ -2487,7 +2529,7 @@ liv_purge_reformation_mission_slot = {
2487
2529
  }
2488
2530
  else = {
2489
2531
  change_ruler_stat = {
2490
- stat = dip
2532
+ type = dip
2491
2533
  amount = 1
2492
2534
  }
2493
2535
  }
@@ -2516,6 +2558,7 @@ liv_purge_reformation_mission_slot = {
2516
2558
  }
2517
2559
  }
2518
2560
  trigger = {
2561
+ not_in_mission_preview_mode = { key = LIV }
2519
2562
  religion = catholic
2520
2563
  NOT = { current_age = age_of_discovery }
2521
2564
  OR = {
@@ -2584,13 +2627,17 @@ liv_orders_mission_slot = {
2584
2627
  }
2585
2628
  }
2586
2629
  trigger = {
2630
+ not_in_mission_preview_mode = { key = LIV }
2587
2631
  religion = catholic
2588
2632
  OR = {
2589
2633
  TEU = {
2590
2634
  religion = ROOT
2591
- trust = {
2592
- who = ROOT
2593
- value = 80
2635
+ if = {
2636
+ limit = { has_dlc = "Leviathan" }
2637
+ trust = {
2638
+ who = ROOT
2639
+ value = 80
2640
+ }
2594
2641
  }
2595
2642
  alliance_with = ROOT
2596
2643
  }
@@ -2611,9 +2658,12 @@ liv_orders_mission_slot = {
2611
2658
  limit = {
2612
2659
  TEU = {
2613
2660
  religion = ROOT
2614
- trust = {
2615
- who = ROOT
2616
- value = 80
2661
+ if = {
2662
+ limit = { has_dlc = "Leviathan" }
2663
+ trust = {
2664
+ who = ROOT
2665
+ value = 80
2666
+ }
2617
2667
  }
2618
2668
  alliance_with = ROOT
2619
2669
  }
@@ -2660,6 +2710,7 @@ liv_orders_mission_slot = {
2660
2710
  required_missions = { liv_unite_the_orders }
2661
2711
  provinces_to_highlight = {}
2662
2712
  trigger = {
2713
+ not_in_mission_preview_mode = { key = LIV }
2663
2714
  religion = catholic
2664
2715
  if = {
2665
2716
  limit = { has_dlc = "Cradle of Civilization" }
@@ -2686,6 +2737,7 @@ liv_orders_mission_slot = {
2686
2737
  }
2687
2738
  provinces_to_highlight = {}
2688
2739
  trigger = {
2740
+ not_in_mission_preview_mode = { key = LIV }
2689
2741
  religion = catholic
2690
2742
  land_forcelimit = 60
2691
2743
  num_of_owned_provinces_with = {
@@ -2737,6 +2789,7 @@ liv_end_the_orthodoxy_mission_slot = {
2737
2789
  }
2738
2790
  }
2739
2791
  trigger = {
2792
+ not_in_mission_preview_mode = { key = LIV }
2740
2793
  religion = catholic
2741
2794
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2742
2795
  OR = {
@@ -2785,6 +2838,7 @@ liv_end_the_orthodoxy_mission_slot = {
2785
2838
  }
2786
2839
  }
2787
2840
  trigger = {
2841
+ not_in_mission_preview_mode = { key = LIV }
2788
2842
  religion = catholic
2789
2843
  calc_true_if = {
2790
2844
  desc = liv_end_the_third_rome_tt
@@ -2822,6 +2876,7 @@ liv_end_the_orthodoxy_mission_slot = {
2822
2876
  }
2823
2877
  }
2824
2878
  trigger = {
2879
+ not_in_mission_preview_mode = { key = LIV }
2825
2880
  religion = catholic
2826
2881
  OR = {
2827
2882
  AND = {
@@ -2926,6 +2981,7 @@ liv_develop_russia_mission_slot = {
2926
2981
  }
2927
2982
  }
2928
2983
  trigger = {
2984
+ not_in_mission_preview_mode = { key = LIV }
2929
2985
  religion = catholic
2930
2986
  lithuania_area = {
2931
2987
  religion = catholic
@@ -2982,6 +3038,7 @@ liv_develop_russia_mission_slot = {
2982
3038
  NOT = { religion = catholic }
2983
3039
  }
2984
3040
  trigger = {
3041
+ not_in_mission_preview_mode = { key = LIV }
2985
3042
  religion = catholic
2986
3043
  ruthenia_region = {
2987
3044
  religion = catholic
@@ -3016,6 +3073,7 @@ liv_develop_russia_mission_slot = {
3016
3073
  NOT = { religion = catholic }
3017
3074
  }
3018
3075
  trigger = {
3076
+ not_in_mission_preview_mode = { key = LIV }
3019
3077
  religion = catholic
3020
3078
  russia_region = {
3021
3079
  religion = catholic
@@ -3049,6 +3107,7 @@ liv_develop_russia_mission_slot = {
3049
3107
  NOT = { religion = catholic }
3050
3108
  }
3051
3109
  trigger = {
3110
+ not_in_mission_preview_mode = { key = LIV }
3052
3111
  religion = catholic
3053
3112
  religious_unity = 1
3054
3113
  total_development = 750
@@ -3092,6 +3151,7 @@ liv_develop_russia_mission_slot = {
3092
3151
  }
3093
3152
  }
3094
3153
  trigger = {
3154
+ not_in_mission_preview_mode = { key = LIV }
3095
3155
  religion = catholic
3096
3156
  calc_true_if = {
3097
3157
  all_known_country = {
@@ -3669,7 +3729,7 @@ liv_dummy_mission_slot_2 = {
3669
3729
  add_papal_influence = 200
3670
3730
  add_war_exhaustion = -2
3671
3731
  change_ruler_stat = {
3672
- stat = mil
3732
+ type = mil
3673
3733
  amount = 2
3674
3734
  }
3675
3735
  if = {
@@ -3724,7 +3784,7 @@ liv_dummy_mission_slot_2 = {
3724
3784
  }
3725
3785
  else = {
3726
3786
  change_ruler_stat = {
3727
- stat = dip
3787
+ type = dip
3728
3788
  amount = 1
3729
3789
  }
3730
3790
  }
@@ -4797,6 +4857,7 @@ liv_dummy_mission_slot_5 = {
4797
4857
  custom_tooltip = liv_livonian_path_effects_tt
4798
4858
  add_accepted_culture_or_dip_power = {
4799
4859
  culture = novgorodian
4860
+ dip_reward = yes
4800
4861
  }
4801
4862
  karelia_area = {
4802
4863
  limit = {
missions/SCA_Norwegian_Missions.txt CHANGED
@@ -2273,7 +2273,7 @@ nor_religion_mission_slot = {
2273
2273
  }
2274
2274
  custom_tooltip = swe_humanist_effects_tt
2275
2275
  change_ruler_stat = {
2276
- stat = dip
2276
+ type = dip
2277
2277
  amount = 3
2278
2278
  }
2279
2279
  }
@@ -2619,7 +2619,7 @@ nor_humanist_mission_slot = {
2619
2619
  }
2620
2620
  effect = {
2621
2621
  change_ruler_stat = {
2622
- stat = dip
2622
+ type = dip
2623
2623
  amount = 3
2624
2624
  }
2625
2625
  }
missions/SCA_Polish_Missions.txt CHANGED
@@ -1,4 +1,4 @@
1
- poland_sca_slot_1 = { #Made by William 'Big Boss' S.
1
+ poland_sca_slot_1 = {
2
2
  slot = 1
3
3
  generic = no
4
4
  ai = yes
@@ -47,7 +47,7 @@ poland_sca_slot_1 = { #Made by William 'Big Boss' S.
47
47
  NOT = {
48
48
  num_of_estate_privileges = {
49
49
  estate = estate_nobles
50
- value = 2
50
+ value = 4
51
51
  }
52
52
  }
53
53
  crown_land_share = 50
@@ -680,33 +680,60 @@ poland_sca_slot_2_a = {
680
680
  area = silesia_area
681
681
  area = moravia_area
682
682
  area = bohemia_area
683
- area = erzgebirge_area
684
- area = lusatia_area
685
683
  }
686
- NOT = { country_or_non_sovereign_subject_holds = ROOT }
684
+ OR = {
685
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
686
+ owner = {
687
+ NOT = { alliance_with = ROOT }
688
+ }
689
+ owner = {
690
+ overlord = {
691
+ NOT = { alliance_with = ROOT }
692
+ }
693
+ }
694
+ }
687
695
  }
688
696
  trigger = {
689
697
  OR = {
690
698
  AND = {
691
- silesia_area = {
699
+ silesia_area = {
700
+ OR = {
701
+ country_or_non_sovereign_subject_holds = ROOT
702
+ custom_trigger_tooltip = {
703
+ tooltip = owned_by_ally_or_ally_subject_tt
704
+ OR = {
705
+ alliance_with = ROOT
706
+ overlord = { alliance_with = ROOT }
707
+ }
708
+ }
709
+ }
692
710
  type = all
693
- country_or_non_sovereign_subject_holds = ROOT
694
711
  }
695
- moravia_area = {
712
+ moravia_area = {
713
+ OR = {
714
+ country_or_non_sovereign_subject_holds = ROOT
715
+ custom_trigger_tooltip = {
716
+ tooltip = owned_by_ally_or_ally_subject_tt
717
+ OR = {
718
+ alliance_with = ROOT
719
+ overlord = { alliance_with = ROOT }
720
+ }
721
+ }
722
+ }
696
723
  type = all
697
- country_or_non_sovereign_subject_holds = ROOT
698
724
  }
699
- bohemia_area = {
725
+ bohemia_area = {
726
+ OR = {
727
+ country_or_non_sovereign_subject_holds = ROOT
728
+ custom_trigger_tooltip = {
729
+ tooltip = owned_by_ally_or_ally_subject_tt
730
+ OR = {
731
+ alliance_with = ROOT
732
+ overlord = { alliance_with = ROOT }
733
+ }
734
+ }
735
+ }
700
736
  type = all
701
- country_or_non_sovereign_subject_holds = ROOT
702
- }
703
- erzgebirge_area = {
704
- type = all
705
- country_or_non_sovereign_subject_holds = ROOT
706
- }
707
- lusatia_area = {
708
- type = all
709
- country_or_non_sovereign_subject_holds = ROOT
710
737
  }
711
738
  }
712
739
  BOH = { is_subject_of = ROOT }
@@ -716,9 +743,12 @@ poland_sca_slot_2_a = {
716
743
  who = ROOT
717
744
  value = 190
718
745
  }
719
- trust = {
720
- who = ROOT
721
- value = 100
746
+ if = {
747
+ limit = { has_dlc = "Leviathan" }
748
+ trust = {
749
+ who = ROOT
750
+ value = 100
751
+ }
722
752
  }
723
753
  is_at_war = no
724
754
  NOT = { total_development = ROOT }
@@ -736,7 +766,7 @@ poland_sca_slot_2_a = {
736
766
  custom_tooltip = pol_alternatively_every_required_province_tt
737
767
  tooltip = {
738
768
  change_ruler_stat = {
739
- stat = mil
769
+ type = mil
740
770
  amount = 2
741
771
  }
742
772
  if = {
@@ -764,7 +794,7 @@ poland_sca_slot_2_a = {
764
794
  bohemia_area = { add_nationalism = -5 }
765
795
  lusatia_area = { add_nationalism = -5 }
766
796
  change_ruler_stat = {
767
- stat = mil
797
+ type = mil
768
798
  amount = 2
769
799
  }
770
800
  if = {
@@ -787,117 +817,118 @@ poland_sca_slot_2_a = {
787
817
  area = silesia_area
788
818
  area = moravia_area
789
819
  area = bohemia_area
790
- area = erzgebirge_area
791
- area = lusatia_area
792
820
  area = alfold_area
793
821
  area = slovakia_area
794
822
  area = transdanubia_area
795
- area = transylvania_area
796
- area = southern_transylvania_area
797
823
  }
798
- OR = {
799
- unrest = 1
824
+ OR = {
800
825
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
801
- local_autonomy_above_min = 5
826
+ owner = {
827
+ NOT = { alliance_with = ROOT }
828
+ }
829
+ owner = {
830
+ overlord = {
831
+ NOT = { alliance_with = ROOT }
832
+ }
833
+ }
802
834
  }
803
835
  }
804
836
  trigger = {
837
+ silesia_area = {
838
+ OR = {
839
+ country_or_non_sovereign_subject_holds = ROOT
840
+ custom_trigger_tooltip = {
841
+ tooltip = owned_by_ally_or_ally_subject_tt
842
+ OR = {
843
+ alliance_with = ROOT
844
+ overlord = { alliance_with = ROOT }
845
+ }
846
+ }
847
+ }
848
+ type = all
849
+ }
850
+ moravia_area = {
851
+ OR = {
852
+ country_or_non_sovereign_subject_holds = ROOT
853
+ custom_trigger_tooltip = {
854
+ tooltip = owned_by_ally_or_ally_subject_tt
855
+ OR = {
856
+ alliance_with = ROOT
857
+ overlord = { alliance_with = ROOT }
858
+ }
859
+ }
860
+ }
861
+ type = all
862
+ }
863
+ bohemia_area = {
864
+ OR = {
865
+ country_or_non_sovereign_subject_holds = ROOT
866
+ custom_trigger_tooltip = {
867
+ tooltip = owned_by_ally_or_ally_subject_tt
868
+ OR = {
869
+ alliance_with = ROOT
870
+ overlord = { alliance_with = ROOT }
871
+ }
872
+ }
873
+ }
874
+ type = all
875
+ }
876
+ silesia_area = {
877
+ OR = {
878
+ country_or_non_sovereign_subject_holds = ROOT
879
+ custom_trigger_tooltip = {
880
+ tooltip = owned_by_ally_or_ally_subject_tt
881
+ OR = {
882
+ alliance_with = ROOT
883
+ overlord = { alliance_with = ROOT }
884
+ }
885
+ }
886
+ }
887
+ type = all
888
+ }
889
+ alfold_area = {
890
+ OR = {
891
+ country_or_non_sovereign_subject_holds = ROOT
892
+ custom_trigger_tooltip = {
893
+ tooltip = owned_by_ally_or_ally_subject_tt
894
+ OR = {
895
+ alliance_with = ROOT
896
+ overlord = { alliance_with = ROOT }
897
+ }
898
+ }
899
+ }
900
+ type = all
901
+ }
902
+ slovakia_area = {
903
+ OR = {
904
+ country_or_non_sovereign_subject_holds = ROOT
905
+ custom_trigger_tooltip = {
906
+ tooltip = owned_by_ally_or_ally_subject_tt
907
+ OR = {
908
+ alliance_with = ROOT
909
+ overlord = { alliance_with = ROOT }
910
+ }
911
+ }
912
+ }
913
+ type = all
914
+ }
915
+ transdanubia_area = {
916
+ OR = {
917
+ country_or_non_sovereign_subject_holds = ROOT
918
+ custom_trigger_tooltip = {
919
+ tooltip = owned_by_ally_or_ally_subject_tt
920
+ OR = {
921
+ alliance_with = ROOT
922
+ overlord = { alliance_with = ROOT }
923
+ }
924
+ }
925
+ }
926
+ type = all
927
+ }
805
928
  stability = 2
806
929
  grown_by_development = 350
807
930
  crown_land_share = 50
808
931
  legitimacy_equivalent = 90
809
- OR = {
810
- HUN = {
811
- alliance_with = ROOT
812
- has_opinion = {
813
- who = ROOT
814
- value = 190
815
- }
816
- trust = { who = ROOT value = 100 }
817
- grown_by_development = 100
818
- is_in_deficit = no
819
- NOT = { num_of_loans = 1 }
820
- }
821
- custom_trigger_tooltip = {
822
- tooltip = pol_no_unrest_average_auto_above_min_5_in_hungarian_provinces_tt
823
- slovakia_area = {
824
- type = all
825
- country_or_non_sovereign_subject_holds = ROOT
826
- NOT = { unrest = 1 }
827
- NOT = { local_autonomy_above_min = 5 }
828
- }
829
- alfold_area = {
830
- type = all
831
- country_or_non_sovereign_subject_holds = ROOT
832
- NOT = { unrest = 1 }
833
- NOT = { local_autonomy_above_min = 5 }
834
- }
835
- transdanubia_area = {
836
- type = all
837
- country_or_non_sovereign_subject_holds = ROOT
838
- NOT = { unrest = 1 }
839
- NOT = { local_autonomy_above_min = 5 }
840
- }
841
- transylvania_area = {
842
- type = all
843
- country_or_non_sovereign_subject_holds = ROOT
844
- NOT = { unrest = 1 }
845
- NOT = { local_autonomy_above_min = 5 }
846
- }
847
- southern_transylvania_area = {
848
- type = all
849
- country_or_non_sovereign_subject_holds = ROOT
850
- NOT = { unrest = 1 }
851
- NOT = { local_autonomy_above_min = 5 }
852
- }
853
- }
854
- }
855
- OR = {
856
- BOH = {
857
- alliance_with = ROOT
858
- has_opinion = {
859
- who = ROOT
860
- value = 190
861
- }
862
- trust = { who = ROOT value = 100 }
863
- grown_by_development = 100
864
- is_in_deficit = no
865
- NOT = { num_of_loans = 1 }
866
- }
867
- custom_trigger_tooltip = {
868
- tooltip = pol_no_unrest_average_auto_above_min_5_in_bohemian_provinces_tt
869
- silesia_area = {
870
- type = all
871
- country_or_non_sovereign_subject_holds = ROOT
872
- NOT = { unrest = 1 }
873
- NOT = { local_autonomy_above_min = 5 }
874
- }
875
- moravia_area = {
876
- type = all
877
- country_or_non_sovereign_subject_holds = ROOT
878
- NOT = { unrest = 1 }
879
- NOT = { local_autonomy_above_min = 5 }
880
- }
881
- bohemia_area = {
882
- type = all
883
- country_or_non_sovereign_subject_holds = ROOT
884
- NOT = { unrest = 1 }
885
- NOT = { local_autonomy_above_min = 5 }
886
- }
887
- erzgebirge_area = {
888
- type = all
889
- country_or_non_sovereign_subject_holds = ROOT
890
- NOT = { unrest = 1 }
891
- NOT = { local_autonomy_above_min = 5 }
892
- }
893
- lusatia_area = {
894
- type = all
895
- country_or_non_sovereign_subject_holds = ROOT
896
- NOT = { unrest = 1 }
897
- NOT = { local_autonomy_above_min = 5 }
898
- }
899
- }
900
- }
901
932
  }
902
933
  effect = {
903
934
  266 = {
@@ -951,7 +982,7 @@ poland_sca_slot_2_a = {
951
982
  }
952
983
  }
953
984
  change_ruler_stat = {
954
- stat = dip
985
+ type = dip
955
986
  amount = 2
956
987
  }
957
988
  }
@@ -997,7 +1028,7 @@ poland_sca_slot_2_b = {
997
1028
  ruler_has_personality = free_thinker_personality
998
1029
  ruler_has_personality = scholar_personality
999
1030
  ruler_total_stats = {
1000
- stats = 14
1031
+ amount = 14
1001
1032
  }
1002
1033
  }
1003
1034
  }
@@ -1005,7 +1036,7 @@ poland_sca_slot_2_b = {
1005
1036
  OR = {
1006
1037
  full_idea_group = innovativeness_ideas
1007
1038
  ruler_total_stats = {
1008
- stats = 14
1039
+ amount = 14
1009
1040
  }
1010
1041
  }
1011
1042
  }
@@ -1075,7 +1106,7 @@ poland_sca_slot_2_plc_1 = {
1075
1106
  ruler_has_personality = free_thinker_personality
1076
1107
  ruler_has_personality = scholar_personality
1077
1108
  ruler_total_stats = {
1078
- stats = 14
1109
+ amount = 14
1079
1110
  }
1080
1111
  }
1081
1112
  }
@@ -1083,7 +1114,7 @@ poland_sca_slot_2_plc_1 = {
1083
1114
  OR = {
1084
1115
  full_idea_group = innovativeness_ideas
1085
1116
  ruler_total_stats = {
1086
- stats = 14
1117
+ amount = 14
1087
1118
  }
1088
1119
  }
1089
1120
  }
@@ -1466,6 +1497,7 @@ poland_sca_slot_3_a = {
1466
1497
  OR = {
1467
1498
  alliance_with = ROOT
1468
1499
  is_rival = ROOT
1500
+ is_subject_of = ROOT
1469
1501
  has_opinion_modifier = {
1470
1502
  who = ROOT
1471
1503
  modifier = insulted
@@ -1481,6 +1513,7 @@ poland_sca_slot_3_a = {
1481
1513
  OR = {
1482
1514
  alliance_with = ROOT
1483
1515
  is_rival = ROOT
1516
+ is_subject_of = ROOT
1484
1517
  has_opinion_modifier = {
1485
1518
  who = ROOT
1486
1519
  modifier = insulted
@@ -1494,39 +1527,230 @@ poland_sca_slot_3_a = {
1494
1527
  }
1495
1528
  }
1496
1529
  effect = {
1497
- custom_tooltip = pol_if_antagonize_poland_or_hungary_pu_tt
1498
- tooltip = {
1499
- add_casus_belli = {
1500
- type = cb_restore_personal_union
1501
- months = 300
1502
- target = HUN
1503
- }
1504
- add_casus_belli = {
1505
- type = cb_restore_personal_union
1506
- months = 300
1507
- target = BOH
1508
- }
1509
- }
1510
- custom_tooltip = pol_alternatively_tt
1530
+ if = {
1531
+ limit = {
1532
+ NOT = { has_country_flag = pol_denied_pu_flag }
1533
+ NOT = { has_country_flag = pol_chose_pu_flag }
1534
+ }
1535
+ custom_tooltip = pol_before_event_goes_tt
1536
+ }
1537
+ if = {
1538
+ limit = { has_country_flag = pol_denied_pu_flag }
1539
+ tooltip = {
1540
+ if = {
1541
+ limit = {
1542
+ has_country_flag = pol_denied_pu_flag
1543
+ HUN = {
1544
+ NOT = {
1545
+ OR = {
1546
+ alliance_with = ROOT
1547
+ is_subject_of = ROOT
1548
+ }
1549
+ }
1550
+ }
1551
+ }
1552
+ slovakia_area = {
1553
+ limit = {
1554
+ NOT = { is_core = ROOT }
1555
+ NOT = { is_permanent_claim = ROOT }
1556
+ }
1557
+ add_permanent_claim = ROOT
1558
+ }
1559
+ alfold_area = {
1560
+ limit = {
1561
+ NOT = { is_core = ROOT }
1562
+ NOT = { is_permanent_claim = ROOT }
1563
+ }
1564
+ add_permanent_claim = ROOT
1565
+ }
1566
+ transdanubia_area = {
1567
+ limit = {
1568
+ NOT = { is_core = ROOT }
1569
+ NOT = { is_permanent_claim = ROOT }
1570
+ }
1571
+ add_permanent_claim = ROOT
1572
+ }
1573
+ if = {
1574
+ limit = {
1575
+ BOH = {
1576
+ NOT = {
1577
+ OR = {
1578
+ alliance_with = ROOT
1579
+ is_subject_of = ROOT
1580
+ }
1581
+ }
1582
+ valid_for_personal_unions_trigger = yes
1583
+ }
1584
+ }
1585
+ add_casus_belli = {
1586
+ type = cb_restore_personal_union
1587
+ months = 300
1588
+ target = BOH
1589
+ }
1590
+ }
1591
+ else = {
1592
+ moravia_area = {
1593
+ limit = {
1594
+ NOT = { is_core = ROOT }
1595
+ NOT = { is_permanent_claim = ROOT }
1596
+ }
1597
+ add_permanent_claim = ROOT
1598
+ }
1599
+ bohemia_area = {
1600
+ limit = {
1601
+ NOT = { is_core = ROOT }
1602
+ NOT = { is_permanent_claim = ROOT }
1603
+ }
1604
+ add_permanent_claim = ROOT
1605
+ }
1606
+ silesia_area = {
1607
+ limit = {
1608
+ NOT = { is_core = ROOT }
1609
+ NOT = { is_permanent_claim = ROOT }
1610
+ }
1611
+ add_permanent_claim = ROOT
1612
+ }
1613
+ }
1614
+ }
1615
+ }
1616
+ }
1617
+ if = {
1618
+ limit = { has_country_flag = pol_chose_pu_flag }
1619
+ tooltip = {
1620
+ if = {
1621
+ limit = {
1622
+ has_country_flag = pol_chose_pu_flag
1623
+ BOH = {
1624
+ NOT = {
1625
+ OR = {
1626
+ alliance_with = ROOT
1627
+ is_subject_of = ROOT
1628
+ }
1629
+ }
1630
+ }
1631
+ }
1632
+ moravia_area = {
1633
+ limit = {
1634
+ NOT = { is_core = ROOT }
1635
+ NOT = { is_permanent_claim = ROOT }
1636
+ }
1637
+ add_permanent_claim = ROOT
1638
+ }
1639
+ bohemia_area = {
1640
+ limit = {
1641
+ NOT = { is_core = ROOT }
1642
+ NOT = { is_permanent_claim = ROOT }
1643
+ }
1644
+ add_permanent_claim = ROOT
1645
+ }
1646
+ silesia_area = {
1647
+ limit = {
1648
+ NOT = { is_core = ROOT }
1649
+ NOT = { is_permanent_claim = ROOT }
1650
+ }
1651
+ add_permanent_claim = ROOT
1652
+ }
1653
+ if = {
1654
+ limit = {
1655
+ HUN = {
1656
+ NOT = {
1657
+ OR = {
1658
+ alliance_with = ROOT
1659
+ is_subject_of = ROOT
1660
+ }
1661
+ }
1662
+ valid_for_personal_unions_trigger = yes
1663
+ }
1664
+ }
1665
+ add_casus_belli = {
1666
+ type = cb_restore_personal_union
1667
+ months = 300
1668
+ target = HUN
1669
+ }
1670
+ }
1671
+ else = {
1672
+ slovakia_area = {
1673
+ limit = {
1674
+ NOT = { is_core = ROOT }
1675
+ NOT = { is_permanent_claim = ROOT }
1676
+ }
1677
+ add_permanent_claim = ROOT
1678
+ }
1679
+ alfold_area = {
1680
+ limit = {
1681
+ NOT = { is_core = ROOT }
1682
+ NOT = { is_permanent_claim = ROOT }
1683
+ }
1684
+ add_permanent_claim = ROOT
1685
+ }
1686
+ transdanubia_area = {
1687
+ limit = {
1688
+ NOT = { is_core = ROOT }
1689
+ NOT = { is_permanent_claim = ROOT }
1690
+ }
1691
+ add_permanent_claim = ROOT
1692
+ }
1693
+ }
1694
+ }
1695
+ }
1696
+ }
1697
+ #
1698
+ if = {
1699
+ limit = {
1700
+ HUN = {
1701
+ OR = {
1702
+ alliance_with = ROOT
1703
+ is_subject_of = ROOT
1704
+ }
1705
+ }
1706
+ }
1707
+ custom_tooltip = hun_friendship_yes_tt
1708
+ }
1709
+ else = {
1710
+ custom_tooltip = hun_friendship_no_tt
1711
+ }
1511
1712
  tooltip = {
1512
1713
  add_favors = {
1513
1714
  who = HUN
1514
1715
  amount = 10
1515
1716
  }
1717
+ HUN = { add_historical_friend = ROOT }
1718
+ add_historical_friend = HUN
1719
+ }
1720
+ if = {
1721
+ limit = {
1722
+ BOH = {
1723
+ OR = {
1724
+ alliance_with = ROOT
1725
+ is_subject_of = ROOT
1726
+ }
1727
+ }
1728
+ }
1729
+ custom_tooltip = boh_friendship_yes_tt
1730
+ }
1731
+ else = {
1732
+ custom_tooltip = boh_friendship_no_tt
1733
+ }
1734
+ tooltip = {
1516
1735
  add_favors = {
1517
1736
  who = BOH
1518
1737
  amount = 10
1519
1738
  }
1520
1739
  BOH = { add_historical_friend = ROOT }
1521
1740
  add_historical_friend = BOH
1522
- HUN = { add_historical_friend = ROOT }
1523
- add_historical_friend = HUN
1524
1741
  }
1525
1742
  custom_tooltip = pol_impact_future_missions_tt
1526
1743
  hidden_effect = {
1527
1744
  swap_non_generic_missions = yes
1528
1745
  if = {
1529
- limit = { alliance_with = BOH }
1746
+ limit = {
1747
+ BOH = {
1748
+ OR = {
1749
+ is_subject_of = ROOT
1750
+ alliance_with = ROOT
1751
+ }
1752
+ }
1753
+ }
1530
1754
  add_favors = {
1531
1755
  who = BOH
1532
1756
  amount = 10
@@ -1538,25 +1762,15 @@ poland_sca_slot_3_a = {
1538
1762
  limit = {
1539
1763
  valid_for_personal_unions_trigger = yes
1540
1764
  BOH = {
1541
- OR = {
1542
- is_rival = ROOT
1543
- has_opinion_modifier = {
1544
- who = ROOT
1545
- modifier = insulted
1546
- }
1547
- has_opinion_modifier = {
1548
- who = ROOT
1549
- modifier = scornfully_insulted
1550
- }
1551
- }
1552
1765
  valid_for_personal_unions_trigger = yes
1553
1766
  }
1767
+ has_country_flag = pol_denied_pu_flag
1554
1768
  }
1555
1769
  add_casus_belli = {
1556
1770
  type = cb_restore_personal_union
1557
1771
  months = 300
1558
1772
  target = BOH
1559
- }
1773
+ }
1560
1774
  }
1561
1775
  else = {
1562
1776
  moravia_area = {
@@ -1566,13 +1780,6 @@ poland_sca_slot_3_a = {
1566
1780
  }
1567
1781
  add_permanent_claim = ROOT
1568
1782
  }
1569
- erzgebirge_area = {
1570
- limit = {
1571
- NOT = { is_core = ROOT }
1572
- NOT = { is_permanent_claim = ROOT }
1573
- }
1574
- add_permanent_claim = ROOT
1575
- }
1576
1783
  bohemia_area = {
1577
1784
  limit = {
1578
1785
  NOT = { is_core = ROOT }
@@ -1587,13 +1794,6 @@ poland_sca_slot_3_a = {
1587
1794
  }
1588
1795
  add_permanent_claim = ROOT
1589
1796
  }
1590
- lusatia_area = {
1591
- limit = {
1592
- NOT = { is_core = ROOT }
1593
- NOT = { is_permanent_claim = ROOT }
1594
- }
1595
- add_permanent_claim = ROOT
1596
- }
1597
1797
  }
1598
1798
  if = {
1599
1799
  limit = { alliance_with = HUN }
@@ -1608,19 +1808,9 @@ poland_sca_slot_3_a = {
1608
1808
  limit = {
1609
1809
  valid_for_personal_unions_trigger = yes
1610
1810
  HUN = {
1611
- OR = {
1612
- is_rival = ROOT
1613
- has_opinion_modifier = {
1614
- who = ROOT
1615
- modifier = insulted
1616
- }
1617
- has_opinion_modifier = {
1618
- who = ROOT
1619
- modifier = scornfully_insulted
1620
- }
1621
- }
1622
1811
  valid_for_personal_unions_trigger = yes
1623
1812
  }
1813
+ has_country_flag = pol_chose_pu_flag
1624
1814
  }
1625
1815
  add_casus_belli = {
1626
1816
  type = cb_restore_personal_union
@@ -1649,18 +1839,68 @@ poland_sca_slot_3_a = {
1649
1839
  NOT = { is_permanent_claim = ROOT }
1650
1840
  }
1651
1841
  add_permanent_claim = ROOT
1842
+ }
1843
+ }
1844
+ if = {
1845
+ limit = {
1846
+ has_country_flag = pol_chose_pu_flag
1847
+ NOT = {
1848
+ OR = {
1849
+ BOH = { is_subject_of = ROOT }
1850
+ alliance_with = BOH
1851
+ }
1852
+ }
1652
1853
  }
1653
- southern_transylvania_area = {
1854
+ moravia_area = {
1654
1855
  limit = {
1655
1856
  NOT = { is_core = ROOT }
1656
1857
  NOT = { is_permanent_claim = ROOT }
1657
1858
  }
1658
1859
  add_permanent_claim = ROOT
1659
1860
  }
1660
- transylvania_area = {
1861
+ bohemia_area = {
1661
1862
  limit = {
1662
1863
  NOT = { is_core = ROOT }
1663
- NOT = { is_permanent_claim = ROOT }
1864
+ NOT = { is_permanent_claim = ROOT }
1865
+ }
1866
+ add_permanent_claim = ROOT
1867
+ }
1868
+ silesia_area = {
1869
+ limit = {
1870
+ NOT = { is_core = ROOT }
1871
+ NOT = { is_permanent_claim = ROOT }
1872
+ }
1873
+ add_permanent_claim = ROOT
1874
+ }
1875
+ }
1876
+ if = {
1877
+ limit = {
1878
+ has_country_flag = pol_denied_pu_flag
1879
+ NOT = {
1880
+ OR = {
1881
+ HUN = { is_subject_of = ROOT }
1882
+ alliance_with = HUN
1883
+ }
1884
+ }
1885
+ }
1886
+ slovakia_area = {
1887
+ limit = {
1888
+ NOT = { is_core = ROOT }
1889
+ NOT = { is_permanent_claim = ROOT }
1890
+ }
1891
+ add_permanent_claim = ROOT
1892
+ }
1893
+ alfold_area = {
1894
+ limit = {
1895
+ NOT = { is_core = ROOT }
1896
+ NOT = { is_permanent_claim = ROOT }
1897
+ }
1898
+ add_permanent_claim = ROOT
1899
+ }
1900
+ transdanubia_area = {
1901
+ limit = {
1902
+ NOT = { is_core = ROOT }
1903
+ NOT = { is_permanent_claim = ROOT }
1664
1904
  }
1665
1905
  add_permanent_claim = ROOT
1666
1906
  }
@@ -1681,30 +1921,85 @@ poland_sca_slot_3_a = {
1681
1921
  area = transylvania_area
1682
1922
  area = alfold_area
1683
1923
  }
1684
- NOT = { country_or_non_sovereign_subject_holds = ROOT }
1924
+ OR = {
1925
+ NOT = { country_or_non_sovereign_subject_holds = ROOT }
1926
+ owner = {
1927
+ NOT = { alliance_with = ROOT }
1928
+ }
1929
+ owner = {
1930
+ overlord = {
1931
+ NOT = { alliance_with = ROOT }
1932
+ }
1933
+ }
1934
+ }
1685
1935
  }
1686
1936
  trigger = {
1687
1937
  OR = {
1688
1938
  AND = {
1689
- slovakia_area = {
1939
+ slovakia_area = {
1940
+ OR = {
1941
+ country_or_non_sovereign_subject_holds = ROOT
1942
+ custom_trigger_tooltip = {
1943
+ tooltip = owned_by_ally_or_ally_subject_tt
1944
+ OR = {
1945
+ alliance_with = ROOT
1946
+ overlord = { alliance_with = ROOT }
1947
+ }
1948
+ }
1949
+ }
1690
1950
  type = all
1691
- country_or_non_sovereign_subject_holds = ROOT
1692
1951
  }
1693
- transdanubia_area = {
1952
+ transdanubia_area = {
1953
+ OR = {
1954
+ country_or_non_sovereign_subject_holds = ROOT
1955
+ custom_trigger_tooltip = {
1956
+ tooltip = owned_by_ally_or_ally_subject_tt
1957
+ OR = {
1958
+ alliance_with = ROOT
1959
+ overlord = { alliance_with = ROOT }
1960
+ }
1961
+ }
1962
+ }
1694
1963
  type = all
1695
- country_or_non_sovereign_subject_holds = ROOT
1696
1964
  }
1697
- southern_transylvania_area = {
1965
+ southern_transylvania_area = {
1966
+ OR = {
1967
+ country_or_non_sovereign_subject_holds = ROOT
1968
+ custom_trigger_tooltip = {
1969
+ tooltip = owned_by_ally_or_ally_subject_tt
1970
+ OR = {
1971
+ alliance_with = ROOT
1972
+ overlord = { alliance_with = ROOT }
1973
+ }
1974
+ }
1975
+ }
1698
1976
  type = all
1699
- country_or_non_sovereign_subject_holds = ROOT
1700
1977
  }
1701
- transylvania_area = {
1978
+ transylvania_area = {
1979
+ OR = {
1980
+ country_or_non_sovereign_subject_holds = ROOT
1981
+ custom_trigger_tooltip = {
1982
+ tooltip = owned_by_ally_or_ally_subject_tt
1983
+ OR = {
1984
+ alliance_with = ROOT
1985
+ overlord = { alliance_with = ROOT }
1986
+ }
1987
+ }
1988
+ }
1702
1989
  type = all
1703
- country_or_non_sovereign_subject_holds = ROOT
1704
1990
  }
1705
- alfold_area = {
1991
+ alfold_area = {
1992
+ OR = {
1993
+ country_or_non_sovereign_subject_holds = ROOT
1994
+ custom_trigger_tooltip = {
1995
+ tooltip = owned_by_ally_or_ally_subject_tt
1996
+ OR = {
1997
+ alliance_with = ROOT
1998
+ overlord = { alliance_with = ROOT }
1999
+ }
2000
+ }
2001
+ }
1706
2002
  type = all
1707
- country_or_non_sovereign_subject_holds = ROOT
1708
2003
  }
1709
2004
  }
1710
2005
  HUN = { is_subject_of = ROOT }
@@ -1714,9 +2009,12 @@ poland_sca_slot_3_a = {
1714
2009
  who = ROOT
1715
2010
  value = 190
1716
2011
  }
1717
- trust = {
1718
- who = ROOT
1719
- value = 100
2012
+ if = {
2013
+ limit = { has_dlc = "Leviathan" }
2014
+ trust = {
2015
+ who = ROOT
2016
+ value = 100
2017
+ }
1720
2018
  }
1721
2019
  is_at_war = no
1722
2020
  NOT = { total_development = ROOT }
@@ -1882,7 +2180,7 @@ poland_sca_slot_3_a = {
1882
2180
  else_if = {
1883
2181
  limit = { mercantilism = 25 }
1884
2182
  change_ruler_stat = {
1885
- stat = dip
2183
+ type = dip
1886
2184
  amount = 1
1887
2185
  }
1888
2186
  set_country_flag = enable_special_trader_flag
@@ -2085,7 +2383,7 @@ poland_sca_slot_3_b = {
2085
2383
  }
2086
2384
  else_if = {
2087
2385
  limit = { in_golden_age = yes }
2088
- extend_golden_age = 360
2386
+ extend_golden_age = 600
2089
2387
  }
2090
2388
  }
2091
2389
  else = {
@@ -2348,7 +2646,7 @@ poland_sca_slot_3_plc_1 = {
2348
2646
  }
2349
2647
  else = {
2350
2648
  change_ruler_stat = {
2351
- stat = adm
2649
+ type = adm
2352
2650
  amount = 1
2353
2651
  }
2354
2652
  }
@@ -2436,6 +2734,7 @@ poland_sca_slot_3_plc_1 = {
2436
2734
  }
2437
2735
  }
2438
2736
  }
2737
+
2439
2738
  effect = {
2440
2739
  if = {
2441
2740
  limit = { has_dlc = "Mandate of Heaven" }
@@ -2446,7 +2745,7 @@ poland_sca_slot_3_plc_1 = {
2446
2745
  }
2447
2746
  else_if = {
2448
2747
  limit = { in_golden_age = yes }
2449
- extend_golden_age = 360
2748
+ extend_golden_age = 600
2450
2749
  }
2451
2750
  }
2452
2751
  else = {
@@ -3068,9 +3367,18 @@ poland_sca_slot_4_b = {
3068
3367
  }
3069
3368
  OR = {
3070
3369
  PAP = {
3071
- trust = {
3072
- who = ROOT
3073
- value = 70
3370
+ if = {
3371
+ limit = { has_dlc = "Leviathan" }
3372
+ trust = {
3373
+ who = ROOT
3374
+ value = 70
3375
+ }
3376
+ }
3377
+ else = {
3378
+ has_opinion_modifier = {
3379
+ who = ROOT
3380
+ modifier = sent_gift
3381
+ }
3074
3382
  }
3075
3383
  }
3076
3384
  religious_unity = 0.9
@@ -3337,27 +3645,6 @@ poland_sca_slot_4_d = {
3337
3645
  }
3338
3646
  add_permanent_claim = ROOT
3339
3647
  }
3340
- pskov_area = {
3341
- limit = {
3342
- NOT = { owned_by = ROOT }
3343
- NOT = { is_core = ROOT }
3344
- }
3345
- add_permanent_claim = ROOT
3346
- }
3347
- novgorod_area = {
3348
- limit = {
3349
- NOT = { owned_by = ROOT }
3350
- NOT = { is_core = ROOT }
3351
- }
3352
- add_permanent_claim = ROOT
3353
- }
3354
- moscow_area = {
3355
- limit = {
3356
- NOT = { owned_by = ROOT }
3357
- NOT = { is_core = ROOT }
3358
- }
3359
- add_permanent_claim = ROOT
3360
- }
3361
3648
  if = {
3362
3649
  limit = { has_estate = estate_nobles }
3363
3650
  add_estate_loyalty = {
@@ -4234,7 +4521,7 @@ poland_sca_slot_5_branching_lit_hre = {
4234
4521
  duration = 9125
4235
4522
  }
4236
4523
  change_ruler_stat = {
4237
- stat = dip
4524
+ type = dip
4238
4525
  amount = 2
4239
4526
  }
4240
4527
  }
@@ -4681,11 +4968,11 @@ poland_sca_slot_5_branching_hre_west = {
4681
4968
  }
4682
4969
  else = {
4683
4970
  change_ruler_stat = {
4684
- stat = dip
4971
+ type = dip
4685
4972
  amount = 2
4686
4973
  }
4687
4974
  change_ruler_stat = {
4688
- stat = mil
4975
+ type = mil
4689
4976
  amount = 1
4690
4977
  }
4691
4978
  }
@@ -4738,7 +5025,7 @@ poland_sca_slot_5_branching_hre_west = {
4738
5025
 
4739
5026
  }
4740
5027
  change_ruler_stat = {
4741
- stat = adm
5028
+ type = adm
4742
5029
  amount = 2
4743
5030
  }
4744
5031
  }
@@ -5450,4 +5737,3 @@ poland_sca_slot_5_plc_3 = {
5450
5737
  }
5451
5738
  }
5452
5739
  }
5453
- #Made by William 'Big Boss' S.
missions/SCA_Swedish_Missions.txt CHANGED
@@ -872,9 +872,12 @@ swe_diplomacy_mission_slot = {
872
872
  who = ROOT
873
873
  value = 100
874
874
  }
875
- trust = {
876
- who = ROOT
877
- value = 70
875
+ if = {
876
+ limit = { has_dlc = "Leviathan" }
877
+ trust = {
878
+ who = ROOT
879
+ value = 70
880
+ }
878
881
  }
879
882
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
880
883
  OR = {
@@ -926,9 +929,12 @@ swe_diplomacy_mission_slot = {
926
929
  who = ROOT
927
930
  value = 100
928
931
  }
929
- trust = {
930
- who = ROOT
931
- value = 70
932
+ if = {
933
+ limit = { has_dlc = "Leviathan" }
934
+ trust = {
935
+ who = ROOT
936
+ value = 70
937
+ }
932
938
  }
933
939
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
934
940
  OR = {
@@ -946,9 +952,12 @@ swe_diplomacy_mission_slot = {
946
952
  who = ROOT
947
953
  value = 100
948
954
  }
949
- trust = {
950
- who = ROOT
951
- value = 70
955
+ if = {
956
+ limit = { has_dlc = "Leviathan" }
957
+ trust = {
958
+ who = ROOT
959
+ value = 70
960
+ }
952
961
  }
953
962
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
954
963
  OR = {
@@ -1019,7 +1028,7 @@ swe_diplomacy_mission_slot = {
1019
1028
  }
1020
1029
  }
1021
1030
  effect = {
1022
- #Maybe a new event for Lübeck?
1031
+ #Maybe a new event for L�beck?
1023
1032
  if = {
1024
1033
  limit = {
1025
1034
  owns_or_non_sovereign_subject_of = 45
@@ -2155,7 +2164,7 @@ swe_internal_slot = {
2155
2164
  }
2156
2165
  }
2157
2166
  effect = {
2158
- add_accepted_culture_or_dip_power = { culture = novgorodian }
2167
+ add_accepted_culture_or_dip_power = { culture = novgorodian dip_reward = yes }
2159
2168
  310 = {
2160
2169
  change_province_name = "H�lmgar�r"
2161
2170
  rename_capital = "H�lmgar�r"
@@ -2296,7 +2305,10 @@ swe_internal_slot = {
2296
2305
  AND = {
2297
2306
  alliance_with = ROOT
2298
2307
  has_opinion = { who = ROOT value = 100 }
2299
- trust = { who = ROOT value = 75 }
2308
+ if = {
2309
+ limit = { has_dlc = "Leviathan" }
2310
+ trust = { who = ROOT value = 75 }
2311
+ }
2300
2312
  }
2301
2313
  }
2302
2314
  }
@@ -2309,7 +2321,10 @@ swe_internal_slot = {
2309
2321
  AND = {
2310
2322
  alliance_with = ROOT
2311
2323
  has_opinion = { who = ROOT value = 100 }
2312
- trust = { who = ROOT value = 75 }
2324
+ if = {
2325
+ limit = { has_dlc = "Leviathan" }
2326
+ trust = { who = ROOT value = 75 }
2327
+ }
2313
2328
  }
2314
2329
  }
2315
2330
  }
@@ -2693,7 +2708,18 @@ swe_swedish_military_mission_slot = {
2693
2708
  limit = { exists = PLC }
2694
2709
  alliance_with = PLC
2695
2710
  reverse_has_opinion = { who = PLC value = 150 }
2696
- PLC = { trust = { who = ROOT value = 80 } }
2711
+ if = {
2712
+ limit = { has_dlc = "Leviathan" }
2713
+ PLC = { trust = { who = ROOT value = 80 } }
2714
+ }
2715
+ else = {
2716
+ PLC = {
2717
+ has_opinion_modifier = {
2718
+ who = ROOT
2719
+ modifier = sent_gift
2720
+ }
2721
+ }
2722
+ }
2697
2723
  if = {
2698
2724
  limit = { PLC = { government = monarchy } ROOT = { government = monarchy } }
2699
2725
  marriage_with = PLC
@@ -2772,10 +2798,10 @@ swe_swedish_military_mission_slot = {
2772
2798
  add_adm_power = 150
2773
2799
  if = {
2774
2800
  limit = { has_updated_culture = { culture = slavic } }
2775
- add_accepted_culture_or_dip_power = { culture = polish_new }
2801
+ add_accepted_culture_or_dip_power = { culture = polish_new dip_reward = yes }
2776
2802
  }
2777
2803
  else = {
2778
- add_accepted_culture_or_dip_power = { culture = polish }
2804
+ add_accepted_culture_or_dip_power = { culture = polish dip_reward = yes }
2779
2805
  }
2780
2806
  poland_region = {
2781
2807
  limit = {
@@ -3268,7 +3294,7 @@ swe_religion_mission_slot = {
3268
3294
  }
3269
3295
  else = {
3270
3296
  change_ruler_stat = {
3271
- stat = dip
3297
+ type = dip
3272
3298
  amount = 1
3273
3299
  }
3274
3300
  }
@@ -3277,7 +3303,7 @@ swe_religion_mission_slot = {
3277
3303
  loyalty = 15
3278
3304
  }
3279
3305
  change_ruler_stat = {
3280
- stat = mil
3306
+ type = mil
3281
3307
  amount = 1
3282
3308
  }
3283
3309
  custom_tooltip = swe_humanist_effects_tt
@@ -3404,7 +3430,7 @@ swe_religion_mission_slot = {
3404
3430
  add_papal_influence = 200
3405
3431
  add_war_exhaustion = -2
3406
3432
  change_ruler_stat = {
3407
- stat = mil
3433
+ type = mil
3408
3434
  amount = 2
3409
3435
  }
3410
3436
  if = {
@@ -3429,7 +3455,7 @@ swe_religion_mission_slot = {
3429
3455
  }
3430
3456
  else = {
3431
3457
  change_ruler_stat = {
3432
- stat = dip
3458
+ type = dip
3433
3459
  amount = 1
3434
3460
  }
3435
3461
  }
@@ -3438,7 +3464,7 @@ swe_religion_mission_slot = {
3438
3464
  add_fervor = 100
3439
3465
  add_war_exhaustion = -2
3440
3466
  change_ruler_stat = {
3441
- stat = mil
3467
+ type = mil
3442
3468
  amount = 2
3443
3469
  }
3444
3470
  if = {
@@ -3464,13 +3490,13 @@ swe_religion_mission_slot = {
3464
3490
  }
3465
3491
  else = {
3466
3492
  change_ruler_stat = {
3467
- stat = dip
3493
+ type = dip
3468
3494
  amount = 1
3469
3495
  }
3470
3496
  }
3471
3497
  custom_tooltip = swe_humanist_effects_tt
3472
3498
  change_ruler_stat = {
3473
- stat = dip
3499
+ type = dip
3474
3500
  amount = 3
3475
3501
  }
3476
3502
  }
@@ -3765,7 +3791,7 @@ swe_catholic_mission_slot = {
3765
3791
  add_papal_influence = 200
3766
3792
  add_war_exhaustion = -2
3767
3793
  change_ruler_stat = {
3768
- stat = mil
3794
+ type = mil
3769
3795
  amount = 2
3770
3796
  }
3771
3797
  if = {
@@ -3820,7 +3846,7 @@ swe_catholic_mission_slot = {
3820
3846
  }
3821
3847
  else = {
3822
3848
  change_ruler_stat = {
3823
- stat = dip
3849
+ type = dip
3824
3850
  amount = 1
3825
3851
  }
3826
3852
  }
@@ -4015,7 +4041,7 @@ swe_protestant_mission_slot = {
4015
4041
  }
4016
4042
  else = {
4017
4043
  change_ruler_stat = {
4018
- stat = dip
4044
+ type = dip
4019
4045
  amount = 1
4020
4046
  }
4021
4047
  }
@@ -4024,7 +4050,7 @@ swe_protestant_mission_slot = {
4024
4050
  loyalty = 15
4025
4051
  }
4026
4052
  change_ruler_stat = {
4027
- stat = mil
4053
+ type = mil
4028
4054
  amount = 1
4029
4055
  }
4030
4056
  add_country_modifier = {
@@ -4078,7 +4104,7 @@ swe_protestant_mission_slot = {
4078
4104
  add_fervor = 100
4079
4105
  add_war_exhaustion = -2
4080
4106
  change_ruler_stat = {
4081
- stat = mil
4107
+ type = mil
4082
4108
  amount = 2
4083
4109
  }
4084
4110
  if = {
@@ -4104,7 +4130,7 @@ swe_protestant_mission_slot = {
4104
4130
  }
4105
4131
  else = {
4106
4132
  change_ruler_stat = {
4107
- stat = dip
4133
+ type = dip
4108
4134
  amount = 1
4109
4135
  }
4110
4136
  }
@@ -4251,7 +4277,7 @@ swe_humanist_mission_slot = {
4251
4277
  }
4252
4278
  effect = {
4253
4279
  change_ruler_stat = {
4254
- stat = dip
4280
+ type = dip
4255
4281
  amount = 3
4256
4282
  }
4257
4283
  }
missions/SCA_Teutonic_Missions.txt CHANGED
@@ -28,6 +28,7 @@ teu_hre_protection_mission_slot = {
28
28
  is_capital_of = emperor
29
29
  }
30
30
  trigger = {
31
+ not_in_mission_preview_mode = { key = TEU }
31
32
  if = {
32
33
  limit = { hre_size = 1 }
33
34
  reverse_has_opinion = {
@@ -176,9 +177,18 @@ teu_livonian_mission_slot = {
176
177
  who = ROOT
177
178
  value = 190
178
179
  }
179
- trust = {
180
- who = ROOT
181
- value = 80
180
+ if = {
181
+ limit = { has_dlc = "Leviathan" }
182
+ trust = {
183
+ who = ROOT
184
+ value = 80
185
+ }
186
+ }
187
+ else = {
188
+ has_opinion_modifier = {
189
+ who = ROOT
190
+ modifier = sent_gift
191
+ }
182
192
  }
183
193
  }
184
194
  }
@@ -345,8 +355,9 @@ teu_danzig_and_poland_mission_slot = {
345
355
  type = mission_rewards_power_projection
346
356
  amount = 25
347
357
  }
348
- country_event = {
349
- id = flavor_teu.10
358
+ enable_branching_mission_review = {
359
+ key = TEU
360
+ ai_event_id = flavor_teu.10
350
361
  }
351
362
  }
352
363
  }
@@ -436,6 +447,7 @@ teu_pru_hre_mission_slot = {
436
447
  required_missions = { teu_seek_imperial_protection }
437
448
  provinces_to_highlight = {}
438
449
  trigger = {
450
+ not_in_mission_preview_mode = { key = TEU }
439
451
  has_adm_advisor = yes
440
452
  has_dip_advisor = yes
441
453
  has_mil_advisor = yes
@@ -473,13 +485,15 @@ teu_pru_hre_mission_slot = {
473
485
  limit = {
474
486
  hre_size = 1
475
487
  }
476
- country_event = {
477
- id = flavor_teu.11
488
+ enable_branching_mission_review = {
489
+ key = TEU_PRU
490
+ ai_event_id = flavor_teu.11
478
491
  }
479
492
  }
480
493
  else = {
481
- country_event = {
482
- id = flavor_teu.18
494
+ enable_branching_mission_review = {
495
+ key = TEU_PRU
496
+ ai_event_id = flavor_teu.18
483
497
  }
484
498
  }
485
499
  }
@@ -519,7 +533,7 @@ teu_pru_dummy_hre_mission_slot_1 = {
519
533
  teu_pru_hre_mission_1 = {
520
534
  icon = mission_unknown_mission
521
535
  position = 3
522
- required_missions = { }
536
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
523
537
  provinces_to_highlight = {}
524
538
  trigger = {
525
539
  custom_trigger_tooltip = {
@@ -786,10 +800,10 @@ teu_pru_dummy_hre_mission_slot_1 = {
786
800
  add_dip_power = 100
787
801
  if = {
788
802
  limit = { has_updated_culture = { culture = slavic } }
789
- add_accepted_culture_or_dip_power = { culture = polish_new }
803
+ add_accepted_culture_or_dip_power = { culture = polish_new dip_reward = yes }
790
804
  }
791
805
  else = {
792
- add_accepted_culture_or_dip_power = { culture = polish }
806
+ add_accepted_culture_or_dip_power = { culture = polish dip_reward = yes }
793
807
  }
794
808
  add_country_modifier = {
795
809
  name = teu_pru_integration_of_the_poles
@@ -954,7 +968,7 @@ teu_pru_dummy_hre_mission_slot_1 = {
954
968
  }
955
969
  add_war_exhaustion = -2
956
970
  change_ruler_stat = {
957
- stat = mil
971
+ type = mil
958
972
  amount = 2
959
973
  }
960
974
  if = {
@@ -1006,7 +1020,7 @@ teu_pru_dummy_hre_mission_slot_1 = {
1006
1020
  }
1007
1021
  else = {
1008
1022
  change_ruler_stat = {
1009
- stat = dip
1023
+ type = dip
1010
1024
  amount = 1
1011
1025
  }
1012
1026
  }
@@ -1468,7 +1482,7 @@ teu_pru_dummy_hre_mission_slot_2 = {
1468
1482
  teu_pru_hre_mission_6 = {
1469
1483
  icon = mission_unknown_mission
1470
1484
  position = 3
1471
- required_missions = { }
1485
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
1472
1486
  provinces_to_highlight = {}
1473
1487
  trigger = {
1474
1488
  custom_trigger_tooltip = {
@@ -1533,7 +1547,7 @@ teu_pru_dummy_hre_mission_slot_2 = {
1533
1547
  }
1534
1548
  }
1535
1549
  effect = {
1536
- add_accepted_culture_or_dip_power = { culture = lithuanian }
1550
+ add_accepted_culture_or_dip_power = { culture = lithuanian dip_reward = yes }
1537
1551
  if = {
1538
1552
  limit = {
1539
1553
  NOT = { tag = DNZ }
@@ -1892,7 +1906,7 @@ teu_pru_dummy_hre_mission_slot_2 = {
1892
1906
  }
1893
1907
  if = {
1894
1908
  limit = { has_updated_culture = { culture = slavic } }
1895
- add_accepted_culture_or_dip_power = { culture = ruthenian }
1909
+ add_accepted_culture_or_dip_power = { culture = ruthenian dip_reward = yes }
1896
1910
  }
1897
1911
  add_country_modifier = {
1898
1912
  name = teu_pru_integration_of_the_ruthenians
@@ -1999,11 +2013,12 @@ teu_pru_diplomatic_hre_mission_slot = {
1999
2013
  teu_pru_vassalize_brandenburg = {
2000
2014
  icon = electorate_of_brandenburg
2001
2015
  position = 3
2002
- required_missions = { }
2016
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
2003
2017
  provinces_to_highlight = {
2004
2018
  is_capital_of = BRA
2005
2019
  }
2006
2020
  trigger = {
2021
+ not_in_mission_preview_mode = { key = TEU_PRU }
2007
2022
  OR = {
2008
2023
  is_part_of_hre = yes
2009
2024
  NOT = { hre_size = 1 }
@@ -2050,6 +2065,7 @@ teu_pru_diplomatic_hre_mission_slot = {
2050
2065
  }
2051
2066
  }
2052
2067
  trigger = {
2068
+ not_in_mission_preview_mode = { key = TEU_PRU }
2053
2069
  if = {
2054
2070
  limit = {
2055
2071
  hre_size = 1
@@ -2118,6 +2134,7 @@ teu_pru_diplomatic_hre_mission_slot = {
2118
2134
  }
2119
2135
  }
2120
2136
  trigger = {
2137
+ not_in_mission_preview_mode = { key = TEU_PRU }
2121
2138
  if = {
2122
2139
  limit = {
2123
2140
  has_dlc = "Art of War"
@@ -2211,7 +2228,7 @@ teu_pru_diplomatic_hre_mission_slot = {
2211
2228
  }
2212
2229
  add_war_exhaustion = -2
2213
2230
  change_ruler_stat = {
2214
- stat = mil
2231
+ type = mil
2215
2232
  amount = 2
2216
2233
  }
2217
2234
  if = {
@@ -2263,7 +2280,7 @@ teu_pru_diplomatic_hre_mission_slot = {
2263
2280
  }
2264
2281
  else = {
2265
2282
  change_ruler_stat = {
2266
- stat = dip
2283
+ type = dip
2267
2284
  amount = 1
2268
2285
  }
2269
2286
  }
@@ -2313,6 +2330,7 @@ teu_pru_diplomatic_hre_mission_slot = {
2313
2330
  }
2314
2331
  }
2315
2332
  trigger = {
2333
+ not_in_mission_preview_mode = { key = TEU_PRU }
2316
2334
  if = {
2317
2335
  limit = {
2318
2336
  hre_size = 1
@@ -2377,6 +2395,7 @@ teu_pru_diplomatic_hre_mission_slot = {
2377
2395
  }
2378
2396
  }
2379
2397
  trigger = {
2398
+ not_in_mission_preview_mode = { key = TEU_PRU }
2380
2399
  if = {
2381
2400
  limit = {
2382
2401
  hre_size = 1
@@ -2492,7 +2511,7 @@ teu_pru_diplomatic_seculization_mission_slot = {
2492
2511
  teu_pru_improve_diplomatic_skills = {
2493
2512
  icon = mission_religious
2494
2513
  position = 3
2495
- required_missions = { }
2514
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
2496
2515
  provinces_to_highlight = {
2497
2516
  owner = {
2498
2517
  OR = {
@@ -2508,6 +2527,7 @@ teu_pru_diplomatic_seculization_mission_slot = {
2508
2527
  }
2509
2528
  }
2510
2529
  trigger = {
2530
+ not_in_mission_preview_mode = { key = TEU_PRU }
2511
2531
  diplomatic_reputation = 2
2512
2532
  monthly_dip = 8
2513
2533
  calc_true_if = {
@@ -2577,6 +2597,7 @@ teu_pru_diplomatic_seculization_mission_slot = {
2577
2597
  }
2578
2598
  }
2579
2599
  trigger = {
2600
+ not_in_mission_preview_mode = { key = TEU_PRU }
2580
2601
  west_prussia_area = {
2581
2602
  owned_by = ROOT
2582
2603
  is_core = ROOT
@@ -2638,7 +2659,7 @@ teu_pru_conquest_hre_mission_slot = {
2638
2659
  teu_pru_conquer_brandenburg = {
2639
2660
  icon = electorate_of_brandenburg
2640
2661
  position = 3
2641
- required_missions = { }
2662
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
2642
2663
  provinces_to_highlight = {
2643
2664
  OR = {
2644
2665
  area = neumark_area
@@ -2647,6 +2668,7 @@ teu_pru_conquest_hre_mission_slot = {
2647
2668
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
2648
2669
  }
2649
2670
  trigger = {
2671
+ not_in_mission_preview_mode = { key = TEU_PRU }
2650
2672
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2651
2673
  OR = {
2652
2674
  area = neumark_area
@@ -2689,6 +2711,7 @@ teu_pru_conquest_hre_mission_slot = {
2689
2711
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
2690
2712
  }
2691
2713
  trigger = {
2714
+ not_in_mission_preview_mode = { key = TEU_PRU }
2692
2715
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2693
2716
  OR = {
2694
2717
  area = lusatia_area
@@ -2778,6 +2801,7 @@ teu_pru_conquest_hre_mission_slot = {
2778
2801
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
2779
2802
  }
2780
2803
  trigger = {
2804
+ not_in_mission_preview_mode = { key = TEU_PRU }
2781
2805
  accepted_culture = saxon
2782
2806
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2783
2807
  OR = {
@@ -2830,6 +2854,7 @@ teu_pru_conquest_hre_mission_slot = {
2830
2854
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
2831
2855
  }
2832
2856
  trigger = {
2857
+ not_in_mission_preview_mode = { key = TEU_PRU }
2833
2858
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
2834
2859
  OR = {
2835
2860
  area = upper_franconia_area
@@ -2936,6 +2961,7 @@ teu_pru_conquest_hre_mission_slot = {
2936
2961
  NOT = { owned_by = ROOT }
2937
2962
  }
2938
2963
  trigger = {
2964
+ not_in_mission_preview_mode = { key = TEU_PRU }
2939
2965
  num_of_owned_provinces_with = {
2940
2966
  custom_trigger_tooltip = {
2941
2967
  tooltip = teu_pru_an_empire_of_blood_and_iron_tt
@@ -3026,7 +3052,7 @@ teu_pru_secondary_conquest_hre_mission_slot = {
3026
3052
  teu_pru_push_into_pomarania = {
3027
3053
  icon = mission_hanseatic_city
3028
3054
  position = 3
3029
- required_missions = { }
3055
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
3030
3056
  provinces_to_highlight = {
3031
3057
  OR = {
3032
3058
  area = vorpommern_area
@@ -3036,6 +3062,7 @@ teu_pru_secondary_conquest_hre_mission_slot = {
3036
3062
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3037
3063
  }
3038
3064
  trigger = {
3065
+ not_in_mission_preview_mode = { key = TEU_PRU }
3039
3066
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3040
3067
  OR = {
3041
3068
  area = vorpommern_area
@@ -3109,6 +3136,7 @@ teu_pru_secondary_conquest_hre_mission_slot = {
3109
3136
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3110
3137
  }
3111
3138
  trigger = {
3139
+ not_in_mission_preview_mode = { key = TEU_PRU }
3112
3140
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3113
3141
  OR = {
3114
3142
  area = lower_saxony_area
@@ -3181,6 +3209,7 @@ teu_pru_secondary_conquest_hre_mission_slot = {
3181
3209
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3182
3210
  }
3183
3211
  trigger = {
3212
+ not_in_mission_preview_mode = { key = TEU_PRU }
3184
3213
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3185
3214
  OR = {
3186
3215
  area = westphalia_area
@@ -3247,6 +3276,7 @@ teu_pru_secondary_conquest_hre_mission_slot = {
3247
3276
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3248
3277
  }
3249
3278
  trigger = {
3279
+ not_in_mission_preview_mode = { key = TEU_PRU }
3250
3280
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3251
3281
  OR = {
3252
3282
  area = north_rhine_area
@@ -3298,7 +3328,7 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3298
3328
  teu_pru_warsaw_and_krakow = {
3299
3329
  icon = invade_poland
3300
3330
  position = 3
3301
- required_missions = { }
3331
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
3302
3332
  provinces_to_highlight = {
3303
3333
  OR = {
3304
3334
  province_id = 257
@@ -3310,6 +3340,7 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3310
3340
  }
3311
3341
  }
3312
3342
  trigger = {
3343
+ not_in_mission_preview_mode = { key = TEU_PRU }
3313
3344
  owns_core_province = 257
3314
3345
  owns_core_province = 262
3315
3346
  }
@@ -3359,6 +3390,7 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3359
3390
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3360
3391
  }
3361
3392
  trigger = {
3393
+ not_in_mission_preview_mode = { key = TEU_PRU }
3362
3394
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3363
3395
  OR = {
3364
3396
  area = sandomierz_area
@@ -3371,10 +3403,10 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3371
3403
  add_dip_power = 100
3372
3404
  if = {
3373
3405
  limit = { has_updated_culture = { culture = slavic } }
3374
- add_accepted_culture_or_dip_power = { culture = polish_new }
3406
+ add_accepted_culture_or_dip_power = { culture = polish_new dip_reward = yes }
3375
3407
  }
3376
3408
  else = {
3377
- add_accepted_culture_or_dip_power = { culture = polish }
3409
+ add_accepted_culture_or_dip_power = { culture = polish dip_reward = yes }
3378
3410
  }
3379
3411
  add_country_modifier = {
3380
3412
  name = teu_pru_integration_of_the_poles
@@ -3400,6 +3432,7 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3400
3432
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3401
3433
  }
3402
3434
  trigger = {
3435
+ not_in_mission_preview_mode = { key = TEU_PRU }
3403
3436
  moldavia_area = {
3404
3437
  country_or_non_sovereign_subject_holds = ROOT
3405
3438
  type = all
@@ -3437,6 +3470,7 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3437
3470
  }
3438
3471
  }
3439
3472
  trigger = {
3473
+ not_in_mission_preview_mode = { key = TEU_PRU }
3440
3474
  wielkopolska_area = {
3441
3475
  country_or_non_sovereign_subject_holds = ROOT
3442
3476
  type = all
@@ -3534,6 +3568,7 @@ teu_pru_kingdom_of_prussia_mission_slot = {
3534
3568
  }
3535
3569
  }
3536
3570
  trigger = {
3571
+ not_in_mission_preview_mode = { key = TEU_PRU }
3537
3572
  num_of_owned_provinces_with = {
3538
3573
  OR = {
3539
3574
  region = baltic_region
@@ -3604,7 +3639,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3604
3639
  teu_pru_conquer_lithuania = {
3605
3640
  icon = mission_conquer_lithuania
3606
3641
  position = 3
3607
- required_missions = { }
3642
+ required_missions = { teu_pru_teutonic_order_and_the_empire }
3608
3643
  provinces_to_highlight = {
3609
3644
  OR = {
3610
3645
  area = samogitia_area
@@ -3613,6 +3648,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3613
3648
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3614
3649
  }
3615
3650
  trigger = {
3651
+ not_in_mission_preview_mode = { key = TEU_PRU }
3616
3652
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3617
3653
  OR = {
3618
3654
  area = samogitia_area
@@ -3622,7 +3658,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3622
3658
  }
3623
3659
  }
3624
3660
  effect = {
3625
- add_accepted_culture_or_dip_power = { culture = lithuanian }
3661
+ add_accepted_culture_or_dip_power = { culture = lithuanian dip_reward = yes }
3626
3662
  add_country_modifier = {
3627
3663
  name = teu_pru_integration_of_the_lithuanians
3628
3664
  duration = -1
@@ -3689,6 +3725,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3689
3725
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3690
3726
  }
3691
3727
  trigger = {
3728
+ not_in_mission_preview_mode = { key = TEU_PRU }
3692
3729
  owns_or_non_sovereign_subject_of = 280
3693
3730
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3694
3731
  OR = {
@@ -3743,6 +3780,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3743
3780
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
3744
3781
  }
3745
3782
  trigger = {
3783
+ not_in_mission_preview_mode = { key = TEU_PRU }
3746
3784
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3747
3785
  OR = {
3748
3786
  region = ruthenia_region
@@ -3758,7 +3796,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3758
3796
  }
3759
3797
  if = {
3760
3798
  limit = { has_updated_culture = { culture = slavic } }
3761
- add_accepted_culture_or_dip_power = { culture = ruthenian }
3799
+ add_accepted_culture_or_dip_power = { culture = ruthenian dip_reward = yes }
3762
3800
  }
3763
3801
  add_country_modifier = {
3764
3802
  name = teu_pru_integration_of_the_ruthenians
@@ -3790,6 +3828,7 @@ teu_pru_secondary_kingdom_of_prussia_mission_slot = {
3790
3828
  }
3791
3829
  }
3792
3830
  trigger = {
3831
+ not_in_mission_preview_mode = { key = TEU_PRU }
3793
3832
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
3794
3833
  custom_trigger_tooltip = {
3795
3834
  tooltip = teu_pru_fortify_dnieper_tt
@@ -3962,6 +4001,7 @@ teu_pru_prussia_mission_slot = {
3962
4001
  }
3963
4002
  }
3964
4003
  trigger = {
4004
+ not_in_mission_preview_mode = { key = TEU }
3965
4005
  west_prussia_area = {
3966
4006
  owned_by = ROOT
3967
4007
  is_core = ROOT
@@ -4003,6 +4043,7 @@ teu_pru_prussia_mission_slot = {
4003
4043
  required_missions = { teu_pru_develop_the_country }
4004
4044
  provinces_to_highlight = {}
4005
4045
  trigger = {
4046
+ not_in_mission_preview_mode = { key = TEU }
4006
4047
  reform_level = 7
4007
4048
  }
4008
4049
  effect = {
@@ -4033,6 +4074,7 @@ teu_pru_prussia_mission_slot = {
4033
4074
  required_missions = { teu_pru_reform_the_state }
4034
4075
  provinces_to_highlight = {}
4035
4076
  trigger = {
4077
+ not_in_mission_preview_mode = { key = TEU }
4036
4078
  if = {
4037
4079
  limit = {
4038
4080
  is_revolutionary = yes
@@ -4057,15 +4099,15 @@ teu_pru_prussia_mission_slot = {
4057
4099
  }
4058
4100
  effect = {
4059
4101
  change_ruler_stat = {
4060
- stat = adm
4102
+ type = adm
4061
4103
  amount = 1
4062
4104
  }
4063
4105
  change_ruler_stat = {
4064
- stat = dip
4106
+ type = dip
4065
4107
  amount = 1
4066
4108
  }
4067
4109
  change_ruler_stat = {
4068
- stat = mil
4110
+ type = mil
4069
4111
  amount = 1
4070
4112
  }
4071
4113
  }
@@ -4080,6 +4122,7 @@ teu_pru_prussia_mission_slot = {
4080
4122
  NOT = { has_building = university }
4081
4123
  }
4082
4124
  trigger = {
4125
+ not_in_mission_preview_mode = { key = TEU }
4083
4126
  has_institution = enlightenment
4084
4127
  university = 20
4085
4128
  }
@@ -4088,10 +4131,7 @@ teu_pru_prussia_mission_slot = {
4088
4131
  name = teu_pru_prussian_enlightenment_modifier
4089
4132
  duration = -1
4090
4133
  }
4091
- custom_tooltip = no_more_comet_sighted_event_tt
4092
- hidden_effect = {
4093
- set_country_flag = no_more_comet_sighted_event
4094
- }
4134
+ remove_comet_sighted_events = yes
4095
4135
  }
4096
4136
  }
4097
4137
 
@@ -4107,6 +4147,7 @@ teu_pru_prussia_mission_slot = {
4107
4147
  }
4108
4148
  }
4109
4149
  trigger = {
4150
+ not_in_mission_preview_mode = { key = TEU }
4110
4151
  OR = {
4111
4152
  has_reform = revolutionary_empire_reform
4112
4153
  has_reform = revolutionary_republic_reform
@@ -4179,6 +4220,7 @@ teu_pru_military_mission_slot = {
4179
4220
  required_missions = { }
4180
4221
  provinces_to_highlight = {}
4181
4222
  trigger = {
4223
+ not_in_mission_preview_mode = { key = TEU }
4182
4224
  has_mil_advisor_2 = yes
4183
4225
  has_global_modifier_value = {
4184
4226
  which = discipline
@@ -4197,6 +4239,7 @@ teu_pru_military_mission_slot = {
4197
4239
  required_missions = { teu_pru_army_reforms }
4198
4240
  provinces_to_highlight = {}
4199
4241
  trigger = {
4242
+ not_in_mission_preview_mode = { key = TEU }
4200
4243
  if = {
4201
4244
  limit = {
4202
4245
  has_dlc = "Cradle of Civilization"
@@ -4254,6 +4297,7 @@ teu_pru_military_mission_slot = {
4254
4297
  }
4255
4298
  }
4256
4299
  trigger = {
4300
+ not_in_mission_preview_mode = { key = TEU }
4257
4301
  if = {
4258
4302
  limit = {
4259
4303
  has_dlc = "Cradle of Civilization"
@@ -4313,6 +4357,7 @@ teu_pru_military_mission_slot = {
4313
4357
  }
4314
4358
  provinces_to_highlight = {}
4315
4359
  trigger = {
4360
+ not_in_mission_preview_mode = { key = TEU }
4316
4361
  army_size = 60
4317
4362
  if = {
4318
4363
  limit = {
@@ -4379,6 +4424,7 @@ teu_pru_development_mission_slot = {
4379
4424
  required_missions = { }
4380
4425
  provinces_to_highlight = {}
4381
4426
  trigger = {
4427
+ not_in_mission_preview_mode = { key = TEU }
4382
4428
  naval_forcelimit = 25
4383
4429
  navy_size_percentage = 1
4384
4430
  }
@@ -4417,6 +4463,7 @@ teu_pru_development_mission_slot = {
4417
4463
  }
4418
4464
  }
4419
4465
  trigger = {
4466
+ not_in_mission_preview_mode = { key = TEU }
4420
4467
  custom_trigger_tooltip = {
4421
4468
  tooltip = teu_pru_strengthen_mercantilism_tt
4422
4469
  num_of_owned_provinces_with = {
@@ -4460,6 +4507,7 @@ teu_pru_development_mission_slot = {
4460
4507
  province_id = 1926
4461
4508
  }
4462
4509
  trigger = {
4510
+ not_in_mission_preview_mode = { key = TEU }
4463
4511
  1926 = {
4464
4512
  trade_share = {
4465
4513
  country = ROOT
@@ -4481,6 +4529,7 @@ teu_pru_development_mission_slot = {
4481
4529
  required_missions = { }
4482
4530
  provinces_to_highlight = {}
4483
4531
  trigger = {
4532
+ not_in_mission_preview_mode = { key = TEU }
4484
4533
  num_of_owned_provinces_with = {
4485
4534
  has_manufactory_trigger = yes
4486
4535
  base_production = 6
@@ -4508,6 +4557,7 @@ teu_pru_development_mission_slot = {
4508
4557
  NOT = { has_courthouse_building_trigger = yes }
4509
4558
  }
4510
4559
  trigger = {
4560
+ not_in_mission_preview_mode = { key = TEU }
4511
4561
  capital_scope = {
4512
4562
  has_courthouse_building_trigger = yes
4513
4563
  }
@@ -4544,6 +4594,7 @@ teu_pru_development_mission_slot = {
4544
4594
  }
4545
4595
  }
4546
4596
  trigger = {
4597
+ not_in_mission_preview_mode = { key = TEU }
4547
4598
  owns_core_province = 41
4548
4599
  41 = {
4549
4600
  development = 30
@@ -4580,6 +4631,7 @@ teu_crusader_russia_mission_slot = {
4580
4631
  required_missions = { teu_livonian_alliance }
4581
4632
  provinces_to_highlight = {}
4582
4633
  trigger = {
4634
+ not_in_mission_preview_mode = { key = TEU }
4583
4635
  religion = catholic
4584
4636
  if = {
4585
4637
  limit = {
@@ -4653,6 +4705,7 @@ teu_crusader_russia_mission_slot = {
4653
4705
  }
4654
4706
  }
4655
4707
  trigger = {
4708
+ not_in_mission_preview_mode = { key = TEU }
4656
4709
  religion = catholic
4657
4710
  33 = { owner = { religion = catholic } }
4658
4711
  310 = { owner = { religion = catholic } }
@@ -4713,6 +4766,7 @@ teu_crusader_russia_mission_slot = {
4713
4766
  }
4714
4767
  }
4715
4768
  trigger = {
4769
+ not_in_mission_preview_mode = { key = TEU }
4716
4770
  295 = {
4717
4771
  OR = {
4718
4772
  AND = {
@@ -4771,6 +4825,7 @@ teu_crusader_russia_mission_slot = {
4771
4825
  }
4772
4826
  }
4773
4827
  trigger = {
4828
+ not_in_mission_preview_mode = { key = TEU }
4774
4829
  religion = catholic
4775
4830
  OR = {
4776
4831
  AND = {
@@ -4845,6 +4900,7 @@ teu_crusader_russia_mission_slot = {
4845
4900
  }
4846
4901
  }
4847
4902
  trigger = {
4903
+ not_in_mission_preview_mode = { key = TEU }
4848
4904
  religion = catholic
4849
4905
  num_of_owned_provinces_with = {
4850
4906
  religion = ROOT
@@ -4877,6 +4933,7 @@ teu_crusader_russia_mission_slot = {
4877
4933
  NOT = { has_building = cathedral }
4878
4934
  }
4879
4935
  trigger = {
4936
+ not_in_mission_preview_mode = { key = TEU }
4880
4937
  religion = catholic
4881
4938
  cathedral = 10
4882
4939
  theologian = 3
@@ -4927,6 +4984,7 @@ teu_crusader_more_conquest_mission_slot = {
4927
4984
  }
4928
4985
  }
4929
4986
  trigger = {
4987
+ not_in_mission_preview_mode = { key = TEU }
4930
4988
  religion = catholic
4931
4989
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
4932
4990
  OR = {
@@ -4987,6 +5045,7 @@ teu_crusader_more_conquest_mission_slot = {
4987
5045
  }
4988
5046
  }
4989
5047
  trigger = {
5048
+ not_in_mission_preview_mode = { key = TEU }
4990
5049
  religion = catholic
4991
5050
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
4992
5051
  region = crimea_region
@@ -5047,6 +5106,7 @@ teu_crusader_more_conquest_mission_slot = {
5047
5106
  }
5048
5107
  }
5049
5108
  trigger = {
5109
+ not_in_mission_preview_mode = { key = TEU }
5050
5110
  religion = catholic
5051
5111
  owns_or_non_sovereign_subject_of = 463
5052
5112
  owns_or_non_sovereign_subject_of = 4306
@@ -5089,6 +5149,7 @@ teu_crusader_more_conquest_mission_slot = {
5089
5149
  is_capital_of = TUR
5090
5150
  }
5091
5151
  trigger = {
5152
+ not_in_mission_preview_mode = { key = TEU }
5092
5153
  religion = catholic
5093
5154
  OR = {
5094
5155
  NOT = { exists = TUR }
@@ -5143,6 +5204,7 @@ teu_crusader_eastern_conquest_mission_slot = {
5143
5204
  }
5144
5205
  }
5145
5206
  trigger = {
5207
+ not_in_mission_preview_mode = { key = TEU }
5146
5208
  religion = catholic
5147
5209
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
5148
5210
  region = poland_region
@@ -5196,6 +5258,7 @@ teu_crusader_eastern_conquest_mission_slot = {
5196
5258
  }
5197
5259
  }
5198
5260
  trigger = {
5261
+ not_in_mission_preview_mode = { key = TEU }
5199
5262
  religion = catholic
5200
5263
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
5201
5264
  region = ruthenia_region
@@ -5240,6 +5303,7 @@ teu_crusader_eastern_conquest_mission_slot = {
5240
5303
  }
5241
5304
  }
5242
5305
  trigger = {
5306
+ not_in_mission_preview_mode = { key = TEU }
5243
5307
  religion = catholic
5244
5308
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
5245
5309
  region = ural_region
@@ -5272,6 +5336,7 @@ teu_crusader_eastern_conquest_mission_slot = {
5272
5336
  }
5273
5337
  }
5274
5338
  trigger = {
5339
+ not_in_mission_preview_mode = { key = TEU }
5275
5340
  religion = catholic
5276
5341
  num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
5277
5342
  region = central_asia_region
@@ -5318,6 +5383,7 @@ teu_crusader_eastern_conquest_mission_slot = {
5318
5383
  }
5319
5384
  provinces_to_highlight = {}
5320
5385
  trigger = {
5386
+ not_in_mission_preview_mode = { key = TEU }
5321
5387
  religion = catholic
5322
5388
  religious_unity = 0.8
5323
5389
  num_of_cities = 100
@@ -5353,6 +5419,7 @@ teu_crusader_military_mission_slot = {
5353
5419
  required_missions = { teu_build_to_force_limit }
5354
5420
  provinces_to_highlight = {}
5355
5421
  trigger = {
5422
+ not_in_mission_preview_mode = { key = TEU }
5356
5423
  religion = catholic
5357
5424
  custom_trigger_tooltip = {
5358
5425
  tooltip = teu_crusader_mil_reform_1_tt
@@ -5380,6 +5447,7 @@ teu_crusader_military_mission_slot = {
5380
5447
  }
5381
5448
  provinces_to_highlight = {}
5382
5449
  trigger = {
5450
+ not_in_mission_preview_mode = { key = TEU }
5383
5451
  religion = catholic
5384
5452
  if = {
5385
5453
  limit = {
@@ -5419,6 +5487,7 @@ teu_crusader_military_mission_slot = {
5419
5487
  }
5420
5488
  provinces_to_highlight = {}
5421
5489
  trigger = {
5490
+ not_in_mission_preview_mode = { key = TEU }
5422
5491
  religion = catholic
5423
5492
  num_of_generals = 2
5424
5493
  has_completed_idea_group_of_category = {
@@ -5463,6 +5532,7 @@ teu_crusader_military_mission_slot = {
5463
5532
  }
5464
5533
  }
5465
5534
  trigger = {
5535
+ not_in_mission_preview_mode = { key = TEU }
5466
5536
  religion = catholic
5467
5537
  OR = {
5468
5538
  barracks = 8
@@ -5515,6 +5585,7 @@ teu_crusader_development_mission_slot = {
5515
5585
  is_capital_of = PAP
5516
5586
  }
5517
5587
  trigger = {
5588
+ not_in_mission_preview_mode = { key = TEU }
5518
5589
  religion = catholic
5519
5590
  if = {
5520
5591
  limit = {
@@ -5566,6 +5637,7 @@ teu_crusader_development_mission_slot = {
5566
5637
  required_missions = { teu_crusader_secure_papal_alliance }
5567
5638
  provinces_to_highlight = {}
5568
5639
  trigger = {
5640
+ not_in_mission_preview_mode = { key = TEU }
5569
5641
  religion = catholic
5570
5642
  OR = {
5571
5643
  full_idea_group = religious_ideas
@@ -5587,7 +5659,7 @@ teu_crusader_development_mission_slot = {
5587
5659
  full_idea_group = religious_ideas
5588
5660
  }
5589
5661
  change_ruler_stat = {
5590
- stat = adm
5662
+ type = adm
5591
5663
  amount = 2
5592
5664
  }
5593
5665
  }
@@ -5599,7 +5671,7 @@ teu_crusader_development_mission_slot = {
5599
5671
  full_idea_group = theocracy_gov_ideas
5600
5672
  }
5601
5673
  change_ruler_stat = {
5602
- stat = mil
5674
+ type = mil
5603
5675
  amount = 2
5604
5676
  }
5605
5677
  }
@@ -5615,6 +5687,7 @@ teu_crusader_development_mission_slot = {
5615
5687
  required_missions = { teu_crusader_embrace_religious_ideas }
5616
5688
  provinces_to_highlight = {}
5617
5689
  trigger = {
5690
+ not_in_mission_preview_mode = { key = TEU }
5618
5691
  religion = catholic
5619
5692
  custom_trigger_tooltip = {
5620
5693
  tooltip = teu_crusader_convert_provinces_tt
@@ -5638,6 +5711,7 @@ teu_crusader_development_mission_slot = {
5638
5711
  required_missions = { }
5639
5712
  provinces_to_highlight = {}
5640
5713
  trigger = {
5714
+ not_in_mission_preview_mode = { key = TEU }
5641
5715
  religion = catholic
5642
5716
  share_of_starting_income = 2
5643
5717
  is_in_deficit = no
@@ -5674,6 +5748,7 @@ teu_crusader_development_mission_slot = {
5674
5748
  NOT = { province_has_current_tech_fort_trigger = yes }
5675
5749
  }
5676
5750
  trigger = {
5751
+ not_in_mission_preview_mode = { key = TEU }
5677
5752
  religion = catholic
5678
5753
  num_of_owned_provinces_with = {
5679
5754
  province_has_current_tech_fort_trigger = yes
@@ -5703,6 +5778,7 @@ teu_crusader_development_mission_slot = {
5703
5778
  }
5704
5779
  }
5705
5780
  trigger = {
5781
+ not_in_mission_preview_mode = { key = TEU }
5706
5782
  religion = catholic
5707
5783
  religious_unity = 0.9
5708
5784
  NOT = { current_age = age_of_discovery }
@@ -5749,6 +5825,7 @@ teu_crusader_development_mission_slot = {
5749
5825
  }
5750
5826
  }
5751
5827
  trigger = {
5828
+ not_in_mission_preview_mode = { key = TEU }
5752
5829
  religion = catholic
5753
5830
  NOT = { current_age = age_of_discovery }
5754
5831
  OR = {
@@ -6797,15 +6874,15 @@ teu_dummy_mission_slot_3 = {
6797
6874
  effect = {
6798
6875
  custom_tooltip = teu_prussian_path_effects_tt
6799
6876
  change_ruler_stat = {
6800
- stat = adm
6877
+ type = adm
6801
6878
  amount = 1
6802
6879
  }
6803
6880
  change_ruler_stat = {
6804
- stat = dip
6881
+ type = dip
6805
6882
  amount = 1
6806
6883
  }
6807
6884
  change_ruler_stat = {
6808
- stat = mil
6885
+ type = mil
6809
6886
  amount = 1
6810
6887
  }
6811
6888
  custom_tooltip = teu_crsuader_path_effects_tt
@@ -6860,7 +6937,7 @@ teu_dummy_mission_slot_3 = {
6860
6937
  name = teu_pru_prussian_enlightenment_modifier
6861
6938
  duration = -1
6862
6939
  }
6863
- custom_tooltip = no_more_comet_sighted_event_tt
6940
+ remove_comet_sighted_events = yes
6864
6941
  custom_tooltip = teu_crsuader_path_effects_tt
6865
6942
  add_treasury = 1000
6866
6943
  add_manpower = 10
@@ -7470,7 +7547,7 @@ teu_dummy_mission_slot_5 = {
7470
7547
  full_idea_group = religious_ideas
7471
7548
  }
7472
7549
  change_ruler_stat = {
7473
- stat = adm
7550
+ type = adm
7474
7551
  amount = 2
7475
7552
  }
7476
7553
  }
@@ -7482,7 +7559,7 @@ teu_dummy_mission_slot_5 = {
7482
7559
  full_idea_group = religious_ideas
7483
7560
  }
7484
7561
  change_ruler_stat = {
7485
- stat = mil
7562
+ type = mil
7486
7563
  amount = 2
7487
7564
  }
7488
7565
  }
missions/Westphalian_Missions.txt CHANGED
@@ -88,7 +88,7 @@ westfalian_group_1 = {
88
88
  culture = hessian
89
89
  }
90
90
  }
91
- NOT = { is_claim = root }
91
+ NOT = { is_permanent_claim = root }
92
92
  NOT = { is_core = root }
93
93
  }
94
94
  area = { add_permanent_claim = ROOT }
@@ -126,7 +126,7 @@ westfalian_group_1 = {
126
126
  82 = {
127
127
  area = {
128
128
  limit = {
129
- NOT = { is_claim = root }
129
+ NOT = { is_permanent_claim = root }
130
130
  NOT = { is_core = root }
131
131
  }
132
132
  add_permanent_claim = ROOT
@@ -501,8 +501,8 @@ westfalian_group_3 = {
501
501
  }
502
502
 
503
503
  effect = {
504
- add_accepted_culture_or_dip_power = { culture = hessian }
505
- add_accepted_culture_or_dip_power = { culture = hannoverian }
504
+ add_accepted_culture_or_dip_power = { culture = hessian dip_reward = yes }
505
+ add_accepted_culture_or_dip_power = { culture = hannoverian dip_reward = yes }
506
506
  add_country_modifier = {
507
507
  name = westphalia_integrate_rheinland
508
508
  duration = -1
missions/croatian_missions.txt CHANGED
@@ -232,10 +232,10 @@ cro_2 = {
232
232
  effect = {
233
233
  if = {
234
234
  limit = { has_updated_culture = { culture = slavic } }
235
- add_accepted_culture_or_dip_power = { culture = bosnian_new }
235
+ add_accepted_culture_or_dip_power = { culture = bosnian_new dip_reward = yes }
236
236
  }
237
237
  else = {
238
- add_accepted_culture_or_dip_power = { culture = bosnian }
238
+ add_accepted_culture_or_dip_power = { culture = bosnian dip_reward = yes }
239
239
  }
240
240
  }
241
241
  ai_weight = {